Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/phxsql
/ Open
Method
Open
phxsqlclient/utils/filelock.cpp:34–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
}
33
34
bool FileLock::Open(const char* sPath) {
35
m_iFd = open(sPath, O_RDWR | O_CREAT | O_LARGEFILE, S_IRUSR | S_IWUSR);
36
if (m_iFd < 0) {
37
return false;
38
} else {
39
return true;
40
}
41
}
42
43
void FileLock::Close() {
44
close(m_iFd);
Callers
1
Init
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected