Searched refs:s_flock (Results 1 – 4 of 4) sorted by relevance
127 struct flock s_flock; in lprofLockFd() local129 s_flock.l_whence = SEEK_SET; in lprofLockFd()130 s_flock.l_start = 0; in lprofLockFd()131 s_flock.l_len = 0; /* Until EOF. */ in lprofLockFd()132 s_flock.l_pid = getpid(); in lprofLockFd()133 s_flock.l_type = F_WRLCK; in lprofLockFd()135 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofLockFd()152 struct flock s_flock; in lprofUnlockFd() local154 s_flock.l_whence = SEEK_SET; in lprofUnlockFd()155 s_flock.l_start = 0; in lprofUnlockFd()[all …]
32 struct flock s_flock;34 s_flock.l_type = F_WRLCK;35 fcntl(fd, F_SETLKW, &s_flock);
82 struct flock s_flock; in lprofOpenFileEx() local84 s_flock.l_whence = SEEK_SET; in lprofOpenFileEx()85 s_flock.l_start = 0; in lprofOpenFileEx()86 s_flock.l_len = 0; /* Until EOF. */ in lprofOpenFileEx()87 s_flock.l_pid = getpid(); in lprofOpenFileEx()89 s_flock.l_type = F_WRLCK; in lprofOpenFileEx()94 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofOpenFileEx()