| 166 | } |
| 167 | |
| 168 | bool FileLock::ReadLock(uint64_t iOffset, uint64_t iLen, int iWhence) { |
| 169 | return Fcntl(F_SETLK, F_RDLCK, iOffset, iLen, iWhence); |
| 170 | } |
| 171 | |
| 172 | bool FileLock::WriteLock(uint64_t iOffset, uint64_t iLen, int iWhence) { |
| 173 | return Fcntl(F_SETLK, F_WRLCK, iOffset, iLen, iWhence); |
nothing calls this directly
no outgoing calls
no test coverage detected