Lines Matching defs:flock
128 # define FLOCK flock
129 #else /* no flock() */
151 * These are the flock() constants. Since this sytems doesn't have
152 * flock(), the values of the constants are probably not available.
166 # endif /* emulating flock() */
168 #endif /* no flock() */
2698 DIE(aTHX_ PL_no_func, "flock");
6089 /* XXX Emulate flock() with fcntl().
6097 struct flock flock;
6101 flock.l_type = F_RDLCK;
6104 flock.l_type = F_WRLCK;
6107 flock.l_type = F_UNLCK;
6113 flock.l_whence = SEEK_SET;
6114 flock.l_start = flock.l_len = (Off_t)0;
6116 res = fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &flock);
6126 /* XXX Emulate flock() with lockf(). This is just to increase
6161 /* flock locks entire file so for lockf we need to do the same */