/freebsd-12-stable/contrib/sendmail/libsmutil/ |
H A D | lockfile.c | 20 ** LOCKFILE -- lock a file using flock or (shudder) fcntl locking 45 struct flock lfd; 76 if (flock(fd, type) >= 0)
|
/freebsd-12-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-flock.c | 1 /* $NetBSD: flock.c,v 1.6 2008/04/28 20:24:12 martin Exp $ */ 33 * Emulate flock() with fcntl(), where available. 44 flock(int fd, int op) function 49 struct flock fl = {0};
|
H A D | bsd-misc.h | 153 int flock(int, int);
|
/freebsd-12-stable/usr.bin/tip/tip/ |
H A D | log.c | 62 if (flock(fileno(flog), LOCK_EX) < 0) { 63 perror("flock"); 84 (void) flock(fileno(flog), LOCK_UN);
|
/freebsd-12-stable/contrib/apr/file_io/unix/ |
H A D | flock.c | 32 struct flock l = { 0 }; 71 /* keep trying if flock() gets interrupted (by a signal) */ 72 while ((rc = flock(thefile->filedes, ltype)) < 0 && errno == EINTR) 91 struct flock l = { 0 }; 108 /* keep trying if flock() gets interrupted (by a signal) */ 109 while ((rc = flock(thefile->filedes, LOCK_UN)) < 0 && errno == EINTR)
|
/freebsd-12-stable/sys/nfs/ |
H A D | nfs_lock.h | 70 struct flock lm_fl; /* The lock request. */
|
/freebsd-12-stable/sys/sys/ |
H A D | lockf.h | 45 struct flock; 125 typedef int lf_iterator(struct vnode *, struct flock *, void *);
|
H A D | fcntl.h | 274 #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ 284 struct flock { struct 308 /* lock operations for flock(2) */ 333 int flock(int, int);
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | WindowsMMap.h | 40 * flock() operations 62 int flock(int fd, int operation);
|
H A D | InstrProfilingUtil.c | 127 struct flock s_flock; 145 flock(fd, LOCK_EX); 152 struct flock s_flock; 170 flock(fd, LOCK_UN);
|
H A D | WindowsMMap.c | 146 int flock(int fd, int operation) { function
|
/freebsd-12-stable/cddl/compat/opensolaris/misc/ |
H A D | fsshare.c | 176 error = flock(fd, LOCK_EX); 196 error = flock(fileno(oldfd), LOCK_EX); 234 flock(fileno(oldfd), LOCK_UN); 238 flock(fileno(newfd), LOCK_UN);
|
/freebsd-12-stable/lib/libc/gen/ |
H A D | lockf.c | 46 struct flock fl;
|
/freebsd-12-stable/tests/sys/cddl/zfs/bin/ |
H A D | randfree_file.c | 55 struct flock fl;
|
/freebsd-12-stable/contrib/ntp/ |
H A D | flock-build | 75 echo flock-build running on $i? check LIST, skipping 124 echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done. 133 echo `date -u '+%H:%M:%S'` flock-build launched
|
/freebsd-12-stable/tests/sys/fs/fusefs/ |
H A D | locks.cc | 133 * If the fuse filesystem does not support flock locks, then the kernel should 148 ASSERT_EQ(0, flock(fd, LOCK_EX)) << strerror(errno); 153 * Even if the fuse file system supports POSIX locks, we must implement flock 169 ASSERT_EQ(0, flock(fd, LOCK_EX)) << strerror(errno); 173 /* Set a new flock lock with FUSE_SETLK */ 188 ASSERT_EQ(0, flock(fd, LOCK_EX)) << strerror(errno); 192 /* Fail to set a flock lock in non-blocking mode */ 207 ASSERT_NE(0, flock(fd, LOCK_EX | LOCK_NB)); 221 struct flock fl; 248 struct flock f [all...] |
/freebsd-12-stable/sys/i386/ibcs2/ |
H A D | ibcs2_fcntl.c | 53 static void cvt_iflock2flock(struct ibcs2_flock *, struct flock *); 54 static void cvt_flock2iflock(struct flock *, struct ibcs2_flock *); 82 struct flock *flp; 105 print_flock(struct flock *flp) 107 printf("flock: start=%x len=%x pid=%d type=%d whence=%d\n", 116 struct flock *flp; 262 struct flock fl;
|
/freebsd-12-stable/tests/sys/file/ |
H A D | flock_helper.c | 151 struct flock fl1, fl2; 189 struct flock fl; 260 struct flock fl; 330 struct flock fl; 416 struct flock fl; 502 struct flock fl; 604 struct flock fl; 676 struct flock fl; 753 struct flock fl; 825 struct flock f [all...] |
/freebsd-12-stable/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | LockFilePosix.cpp | 23 struct flock fl;
|
/freebsd-12-stable/contrib/openbsm/compat/ |
H A D | flopen.h | 68 if (flock(fd, operation) == -1) {
|
/freebsd-12-stable/crypto/heimdal/lib/roken/ |
H A D | flock.c | 47 struct flock arg;
|
/freebsd-12-stable/lib/libutil/ |
H A D | flopen.c | 77 if (flock(fd, operation) == -1) {
|
/freebsd-12-stable/usr.sbin/cron/cron/ |
H A D | externs.h | 126 extern int flock(int, int);
|
/freebsd-12-stable/sys/nlm/ |
H A D | nlm_advlock.c | 80 struct vnode *vp, int op, struct flock *fl, int flags, 84 struct vnode *vp, int op, struct flock *fl, int flags, 88 struct vnode *vp, int op, struct flock *fl, int flags, 93 static int nlm_init_lock(struct flock *fl, int flags, int svid, 197 nlm_advlock_internal(struct vnode *vp, void *id, int op, struct flock *fl, 299 * The semantics for flock(2) require that any 405 nlm_set_creds_for_lock(struct thread *td, struct flock *fl) 454 nlm_reclaim_free_lock(struct vnode *vp, struct flock *fl, void *arg) 456 struct flock newfl; 491 nlm_client_recover_lock(struct vnode *vp, struct flock *f [all...] |
/freebsd-12-stable/contrib/gcc/ |
H A D | sys-types.h | 39 struct flock;
|