/freebsd-12-stable/bin/pkill/ |
H A D | pkill.c | 822 if (flock(fileno(fh), LOCK_EX | LOCK_NB) == 0) {
|
/freebsd-12-stable/usr.bin/at/ |
H A D | at.c | 222 struct flock lock;
|
/freebsd-12-stable/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 856 if (flock(fd, LOCK_EX)) {
|
/freebsd-12-stable/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 200 if (flock(fileno(fp), LOCK_EX|nblock) < 0 && !(dflag && iflag)) 201 error("flock"); 530 * all use flock(2) on it to block other incarnations of themselves.
|
/freebsd-12-stable/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 149 if(flock(rpcbindlockfd, LOCK_EX|LOCK_NB) == -1 && errno == EWOULDBLOCK)
|
/freebsd-12-stable/contrib/nvi/common/ |
H A D | exf.c | 22 * We include <sys/file.h>, because the flock(2) and open(2) #defines 1515 if (!flock(fd, LOCK_EX | LOCK_NB)) {
|
/freebsd-12-stable/tests/sys/kern/ |
H A D | ptrace_test.c | 3406 (void)flock(fd, LOCK_EX); 3407 (void)flock(fd, LOCK_UN); 3463 ATF_REQUIRE(flock(fd, LOCK_EX) == 0); 3488 ATF_REQUIRE(flock(fd, LOCK_UN) == 0);
|
/freebsd-12-stable/tools/regression/security/open_to_operation/ |
H A D | open_to_operation.c | 50 * flock(2) any yes 357 * flock() should work regardless of open mode. 366 if (flock(fd, LOCK_EX) == 0)
|
/freebsd-12-stable/contrib/gcc/ |
H A D | sys-protos.h | 364 extern int flock(int, int);
|
/freebsd-12-stable/sys/kern/ |
H A D | vfs_vnops.c | 315 struct flock lf; 321 KASSERT(fp != NULL, ("open with flock requires fp")); 1621 struct flock lf;
|
H A D | kern_sig.c | 3611 struct flock lf;
|
/freebsd-12-stable/sys/fs/smbfs/ |
H A D | smbfs_vnops.c | 1014 struct flock *a_fl; 1020 struct flock *fl = ap->a_fl;
|
/freebsd-12-stable/crypto/openssh/ |
H A D | sshkey-xmss.c | 481 while (flock(lockfd, LOCK_EX|LOCK_NB) < 0) {
|
/freebsd-12-stable/usr.bin/xinstall/ |
H A D | xinstall.c | 1420 struct flock metalog_lock;
|
/freebsd-12-stable/usr.sbin/rpc.lockd/ |
H A D | lockd_lock.c | 1110 flerror = flock(nmf->fd, lflags); 1113 debuglog("flock failed (from %16s): %32s\n", 1133 debuglog("flock succeeded (from %16s)\n", fl->client_name); 1350 * 1) It (will) pass locks through to flock to lock the entire underlying file
|
/freebsd-12-stable/contrib/ntp/ |
H A D | Makefile.in | 566 flock-build \
|
/freebsd-12-stable/contrib/sendmail/src/ |
H A D | conf.c | 3588 ** LOCKFILE -- lock a file using flock or (shudder) fcntl locking 3615 struct flock lfd; 3684 while ((i = flock(fd, type)) < 0 && errno == EINTR) 3703 syserr("cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%ld)",
|
/freebsd-12-stable/sys/fs/fuse/ |
H A D | fuse_vnops.c | 372 * struct flock *a_fl; 380 struct flock *fl = ap->a_fl; 400 /* FUSE doesn't properly support flock until protocol 7.17 */
|
/freebsd-12-stable/sys/fs/nfsclient/ |
H A D | nfs_clstate.c | 1335 nfscl_checkwritelocked(vnode_t vp, struct flock *fl, 3943 u_int64_t len, struct flock *fl, NFSPROC_T *p, void *id, int flags)
|
H A D | nfs_clrpcops.c | 3839 nfsrpc_advlock(vnode_t vp, off_t size, int op, struct flock *fl, 3854 * Convert the flock structure into a start and end and do POSIX 4007 struct nfsclclient *clp, u_int64_t off, u_int64_t len, struct flock *fl,
|
/freebsd-12-stable/crypto/heimdal/lib/roken/ |
H A D | Makefile.in | 49 erealloc.c err.c errx.c estrdup.c fchown.c flock.c fnmatch.c \ 798 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/flock.Plo@am__quote@
|
/freebsd-12-stable/contrib/apr/ |
H A D | configure | 26242 for ac_func in semget semctl semop semtimedop flock 27031 for ac_spec in func:flock define:LOCK_EX; do 27208 # which is (highest to lowest): sysvsem -> fcntl -> flock. 27220 for ac_spec in func:flock define:LOCK_EX; do 27247 ac_decision_msg='4.2BSD-style flock()' 27249 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()' 27459 struct flock proc_mutex_lock_it = {0}; 27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5 27584 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
|
/freebsd-12-stable/crypto/heimdal/lib/sqlite/ |
H A D | sqlite3.c | 24392 ** use flock(), dot-files, various proprietary locking schemas, or simply 24408 ** + for flock() locking 24428 ** 4. flock() locking, 25138 static int lockTrace(int fd, int op, struct flock *p){ 25167 struct flock l2; 25813 struct flock lock; 25853 static int unixFileLock(unixFile *pFile, struct flock *pLock){ 25862 struct flock lock; 25947 struct flock lock; 26155 struct flock loc [all...] |
/freebsd-12-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 3326 struct flock fl;
|
/freebsd-12-stable/contrib/sqlite3/ |
H A D | sqlite3.c | [all...] |