Searched refs:flock (Results 1 - 25 of 100) sorted by relevance

1234

/freebsd-12-stable/contrib/sendmail/libsmutil/
H A Dlockfile.c20 ** 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 Dbsd-flock.c1 /* $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 Dbsd-misc.h153 int flock(int, int);
/freebsd-12-stable/usr.bin/tip/tip/
H A Dlog.c62 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 Dflock.c32 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 Dnfs_lock.h70 struct flock lm_fl; /* The lock request. */
/freebsd-12-stable/sys/sys/
H A Dlockf.h45 struct flock;
125 typedef int lf_iterator(struct vnode *, struct flock *, void *);
H A Dfcntl.h274 #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 DWindowsMMap.h40 * flock() operations
62 int flock(int fd, int operation);
H A DInstrProfilingUtil.c127 struct flock s_flock;
145 flock(fd, LOCK_EX);
152 struct flock s_flock;
170 flock(fd, LOCK_UN);
H A DWindowsMMap.c146 int flock(int fd, int operation) { function
/freebsd-12-stable/cddl/compat/opensolaris/misc/
H A Dfsshare.c176 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 Dlockf.c46 struct flock fl;
/freebsd-12-stable/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c55 struct flock fl;
/freebsd-12-stable/contrib/ntp/
H A Dflock-build75 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 Dlocks.cc133 * 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 Dibcs2_fcntl.c53 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 Dflock_helper.c151 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 DLockFilePosix.cpp23 struct flock fl;
/freebsd-12-stable/contrib/openbsm/compat/
H A Dflopen.h68 if (flock(fd, operation) == -1) {
/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Dflock.c47 struct flock arg;
/freebsd-12-stable/lib/libutil/
H A Dflopen.c77 if (flock(fd, operation) == -1) {
/freebsd-12-stable/usr.sbin/cron/cron/
H A Dexterns.h126 extern int flock(int, int);
/freebsd-12-stable/sys/nlm/
H A Dnlm_advlock.c80 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 Dsys-types.h39 struct flock;

Completed in 360 milliseconds

1234