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() */
2470 DIE(aTHX_ PL_no_func, "flock");
5855 /* XXX Emulate flock() with fcntl().
5863 struct flock flock;
5867 flock.l_type = F_RDLCK;
5870 flock.l_type = F_WRLCK;
5873 flock.l_type = F_UNLCK;
5879 flock.l_whence = SEEK_SET;
5880 flock.l_start = flock.l_len = (Off_t)0;
5882 res = fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &flock);
5892 /* XXX Emulate flock() with lockf(). This is just to increase
5927 /* flock locks entire file so for lockf we need to do the same */