Home
last modified time | relevance | path

Searched refs:fl (Results 1 - 1 of 1) sorted by relevance

/ide/tools/previewer/test/mock/
H A DMockFile.cpp38 struct flock fl; in SimulateFileLock() local
39 fl.l_type = F_WRLCK; // Exclusive write lock in SimulateFileLock()
40 fl.l_whence = SEEK_SET; // Starting from beginning of file in SimulateFileLock()
41 fl.l_start = 0; // Starting from offset 0 in SimulateFileLock()
42 fl.l_len = 0; // Lock whole file in SimulateFileLock()
43 fl.l_pid = getpid(); // PID of process holding the lock in SimulateFileLock()
45 if (fcntl(fd, F_SETLK, &fl) == -1) { in SimulateFileLock()
64 struct flock fl; in ReleaseFileLock() local
65 fl.l_type = F_UNLCK; // Unlock the file in ReleaseFileLock()
66 fl in ReleaseFileLock()
[all...]

Completed in 0 milliseconds