Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 25 of 135) sorted by relevance

123456

/freebsd-13.1/tests/sys/fs/fusefs/
H A Dlocks.cc207 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 Dflock.c32 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 Dflock_helper.c189 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 Dpath_test.c723 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 Dzed_file.c34 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 Dbsd-flock.c44 flock(int fd, int op) in flock() function
49 struct flock fl = {0}; in flock()
/freebsd-13.1/contrib/sendmail/libsmutil/
H A Dlockfile.c45 struct flock lfd;
76 if (flock(fd, type) >= 0)
/freebsd-13.1/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,
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 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-13.1/usr.bin/tip/tip/
H A Dlog.c62 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 Dlockf.h45 struct flock;
125 typedef int lf_iterator(struct vnode *, struct flock *, void *);
H A Dfcntl.h306 struct flock { struct
364 int flock(int, int);
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c132 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 DWindowsMMap.h72 int flock(int fd, int operation);
/freebsd-13.1/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c755 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 Dfcntl.h31 typedef struct flock flock64_t;
/freebsd-13.1/sbin/dump/
H A Ditime.c100 (void) flock(fileno(df), LOCK_SH); in initdumptimes()
178 (void) flock(fd, LOCK_EX); in putdumptime()
/freebsd-13.1/sys/nfs/
H A Dnfs_lock.h70 struct flock lm_fl; /* The lock request. */
/freebsd-13.1/lib/libc/gen/
H A Dlockf.c46 struct flock fl; in lockf()
/freebsd-13.1/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c55 struct flock fl; in main()
/freebsd-13.1/contrib/openbsm/compat/
H A Dflopen.h68 if (flock(fd, operation) == -1) { in flopen()
/freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp23 struct flock fl; in fileLock()
/freebsd-13.1/contrib/sendmail/contrib/
H A Dmailprio94 $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 Dsmdb.c88 struct flock lfd;
136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
/freebsd-13.1/usr.sbin/cron/cron/
H A Dexterns.h126 extern int flock(int, int);

123456