MCPcopy 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
34bool 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
43void FileLock::Close() {
44 close(m_iFd);

Callers 1

InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected