MCPcopy Create free account
hub / github.com/Singular/Singular / lock_file

Function lock_file

kernel/oswrapper/vspace.cc:301–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void lock_file(int fd, size_t offset, size_t len) {
302 struct flock lock_info;
303 init_flock_struct(lock_info, offset, len, true);
304 fcntl(fd, F_SETLKW, &lock_info);
305}
306
307void unlock_file(int fd, size_t offset, size_t len) {
308 struct flock lock_info;

Callers 5

lockMethod · 0.85
lock_metapageFunction · 0.85
lock_processFunction · 0.85
lockMethod · 0.85
lockMethod · 0.85

Calls 1

init_flock_structFunction · 0.85

Tested by

no test coverage detected