Lines Matching refs:flock
8329 struct flock flock;
8334 flock.l_type = F_WRLCK;
8335 flock.l_whence = SEEK_SET;
8336 flock.l_start = (off_t)0;
8337 flock.l_len = (off_t)0;
8338 if ((fcntl(lockfd, F_GETLK, &flock) < 0)) {
8343 if (flock.l_type == F_UNLCK)
8345 return (flock.l_pid);
8376 struct flock flock;
8436 flock.l_type = F_WRLCK;
8437 flock.l_whence = SEEK_SET;
8438 flock.l_start = (off_t)0;
8439 flock.l_len = (off_t)0;
8440 if (fcntl(lockfd, F_SETLK, &flock) < 0) {