| /freebsd-13.1/tests/sys/fs/fusefs/ |
| H A D | locks.cc | 207 ASSERT_NE(0, flock(fd, LOCK_EX | LOCK_NB)); in TEST_F() 221 struct flock fl; in TEST_F() 248 struct flock fl; in TEST_F() 296 struct flock fl; in TEST_F() 355 struct flock fl; in TEST_F() 379 struct flock fl; in TEST_F() 405 struct flock fl; in TEST_F() 431 struct flock fl; in TEST_F() 457 struct flock fl; in TEST_F() 487 struct flock fl; in TEST_F() [all …]
|
| /freebsd-13.1/contrib/apr/file_io/unix/ |
| H A D | flock.c | 32 struct flock l = { 0 }; in apr_file_lock() 72 while ((rc = flock(thefile->filedes, ltype)) < 0 && errno == EINTR) in apr_file_lock() 91 struct flock l = { 0 }; in apr_file_unlock() 109 while ((rc = flock(thefile->filedes, LOCK_UN)) < 0 && errno == EINTR) in apr_file_unlock()
|
| /freebsd-13.1/tests/sys/file/ |
| H A D | flock_helper.c | 189 struct flock fl; in test2() 260 struct flock fl; in test3() 330 struct flock fl; in test4() 416 struct flock fl; in test5() 502 struct flock fl; in test6() 604 struct flock fl; in test7() 676 struct flock fl; in test8() 753 struct flock fl; in test9() 825 struct flock fl; in test10() 893 struct flock fl; in test11() [all …]
|
| H A D | path_test.c | 723 struct flock flk; in ATF_TC_BODY() 740 ATF_REQUIRE_ERRNO(EOPNOTSUPP, flock(pathfd, LOCK_SH) == -1); in ATF_TC_BODY() 741 ATF_REQUIRE_ERRNO(EOPNOTSUPP, flock(pathfd, LOCK_EX) == -1); in ATF_TC_BODY() 742 ATF_REQUIRE_ERRNO(EOPNOTSUPP, flock(pathfd, LOCK_SH | LOCK_NB) == -1); in ATF_TC_BODY() 743 ATF_REQUIRE_ERRNO(EOPNOTSUPP, flock(pathfd, LOCK_EX | LOCK_NB) == -1); in ATF_TC_BODY() 744 ATF_REQUIRE_ERRNO(EOPNOTSUPP, flock(pathfd, LOCK_UN) == -1); in ATF_TC_BODY()
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_file.c | 34 struct flock lock; in zed_file_lock() 61 struct flock lock; in zed_file_unlock() 87 struct flock lock; in zed_file_is_locked()
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | bsd-flock.c | 44 flock(int fd, int op) in flock() function 49 struct flock fl = {0}; in flock()
|
| /freebsd-13.1/contrib/sendmail/libsmutil/ |
| H A D | lockfile.c | 45 struct flock lfd; 76 if (flock(fd, type) >= 0)
|
| /freebsd-13.1/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, 405 nlm_set_creds_for_lock(struct thread *td, struct flock *fl) in nlm_set_creds_for_lock() 456 struct flock newfl; in nlm_reclaim_free_lock() 698 nlm_record_lock(struct vnode *vp, int op, struct flock *fl, in nlm_record_lock() 702 struct flock newfl; in nlm_record_lock() 763 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_setlock() 961 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_clearlock() 1036 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_getlock() [all …]
|
| /freebsd-13.1/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-13.1/usr.bin/tip/tip/ |
| H A D | log.c | 62 if (flock(fileno(flog), LOCK_EX) < 0) { in logent() 84 (void) flock(fileno(flog), LOCK_UN); in logent()
|
| /freebsd-13.1/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 | 306 struct flock { struct 364 int flock(int, int);
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingUtil.c | 132 struct flock s_flock; in lprofLockFd() 150 flock(fd, LOCK_EX); in lprofLockFd() 157 struct flock s_flock; in lprofUnlockFd() 175 flock(fd, LOCK_UN); in lprofUnlockFd()
|
| H A D | WindowsMMap.h | 72 int flock(int fd, int operation);
|
| /freebsd-13.1/contrib/netbsd-tests/fs/vfs/ |
| H A D | t_vnops.c | 755 struct flock l; in fcntl_lock() 797 int a = ((const struct flock *)p)->l_start; in flock_compare() 798 int b = ((const struct flock *)q)->l_start; in flock_compare() 813 struct flock *lock, struct flock *end) in fcntl_getlocks() 816 const struct flock l = { start, len, 0, F_RDLCK, SEEK_SET }; in fcntl_getlocks() 857 struct flock expect[4]; in fcntl_getlock_pids() 858 const struct flock lock[4] = { in fcntl_getlock_pids() 866 struct flock result[5]; in fcntl_getlock_pids()
|
| /freebsd-13.1/sys/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | fcntl.h | 31 typedef struct flock flock64_t;
|
| /freebsd-13.1/sbin/dump/ |
| H A D | itime.c | 100 (void) flock(fileno(df), LOCK_SH); in initdumptimes() 178 (void) flock(fd, LOCK_EX); in putdumptime()
|
| /freebsd-13.1/sys/nfs/ |
| H A D | nfs_lock.h | 70 struct flock lm_fl; /* The lock request. */
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | lockf.c | 46 struct flock fl; in lockf()
|
| /freebsd-13.1/tests/sys/cddl/zfs/bin/ |
| H A D | randfree_file.c | 55 struct flock fl; in main()
|
| /freebsd-13.1/contrib/openbsm/compat/ |
| H A D | flopen.h | 68 if (flock(fd, operation) == -1) { in flopen()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | LockFilePosix.cpp | 23 struct flock fl; in fileLock()
|
| /freebsd-13.1/contrib/sendmail/contrib/ |
| H A D | mailprio | 94 $locking = "flock"; # "flock" or "fcntl" 277 $s_flock = "sslll"; # struct flock {type, whence, start, len, pid} 283 X if ($locking eq "flock") { 284 X $ret = flock($FH, $lock); 287 X local ($flock, $type) = 0; 292 X $flock = pack($s_flock, $type, &SEEK_SET, 0, 0, 0); 293 X $ret = fcntl($FH, ($lock & &LOCK_NB) ? &F_SETLK : &F_SETLKW, $flock);
|
| /freebsd-13.1/contrib/sendmail/libsmdb/ |
| H A D | smdb.c | 88 struct flock lfd; 136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
|
| /freebsd-13.1/usr.sbin/cron/cron/ |
| H A D | externs.h | 126 extern int flock(int, int);
|