Lines Matching refs:s_flock
127 struct flock s_flock; in lprofLockFd() local
129 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() local
154 s_flock.l_whence = SEEK_SET; in lprofUnlockFd()
155 s_flock.l_start = 0; in lprofUnlockFd()
156 s_flock.l_len = 0; /* Until EOF. */ in lprofUnlockFd()
157 s_flock.l_pid = getpid(); in lprofUnlockFd()
158 s_flock.l_type = F_UNLCK; in lprofUnlockFd()
160 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofUnlockFd()