Home
last modified time | relevance | path

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

123456

/freebsd/tools/test/stress2/misc/
H A Dflock.sh48 sed '1,/^EOF/d' < $odir/$0 > $dir/flock.c
49 mycc -o flock -Wall -Wextra -O0 -g flock.c || exit 1
50 rm -f flock.c
59 (cd $mntpoint; /tmp/flock)
66 rm -rf /tmp/flock
103 if (flock(fd, LOCK_SH) == -1)
106 if (flock(fd, LOCK_UN) == -1)
123 if (flock(fd, LOCK_EX) == -1)
134 if (flock(fd, LOCK_UN) == -1)
136 if (flock(fd, LOCK_EX) == -1)
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc219 struct flock fl; in TEST_F()
246 struct flock fl; in TEST_F()
306 struct flock fl; in TEST_F()
364 struct flock fl; in TEST_F()
429 struct flock fl; in TEST_F()
495 struct flock fl; in TEST_F()
519 struct flock fl; in TEST_F()
545 struct flock fl; in TEST_F()
571 struct flock fl; in TEST_F()
597 struct flock fl; in TEST_F()
[all …]
/freebsd/tests/sys/file/
H A Dflock_helper.c187 struct flock fl; in test2()
258 struct flock fl; in test3()
328 struct flock fl; in test4()
414 struct flock fl; in test5()
500 struct flock fl; in test6()
602 struct flock fl; in test7()
674 struct flock fl; in test8()
751 struct flock fl; in test9()
823 struct flock fl; in test10()
891 struct flock fl; in test11()
[all …]
/freebsd/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/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/contrib/sendmail/libsmutil/
H A Dlockfile.c45 struct flock lfd;
76 if (flock(fd, type) >= 0)
/freebsd/contrib/ntp/
H A Dflock-build63 echo flock-build running on $i? check LIST, skipping
112 echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
121 echo `date -u '+%H:%M:%S'` flock-build launched
/freebsd/sys/nlm/
H A Dnlm_advlock.c77 struct vnode *vp, int op, struct flock *fl, int flags,
81 struct vnode *vp, int op, struct flock *fl, int flags,
85 struct vnode *vp, int op, struct flock *fl, int flags,
402 nlm_set_creds_for_lock(struct thread *td, struct flock *fl) in nlm_set_creds_for_lock()
453 struct flock newfl; in nlm_reclaim_free_lock()
695 nlm_record_lock(struct vnode *vp, int op, struct flock *fl, in nlm_record_lock()
699 struct flock newfl; in nlm_record_lock()
760 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_setlock()
958 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_clearlock()
1033 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_getlock()
[all …]
/freebsd/usr.bin/tip/tip/
H A Dlog.c52 if (flock(fileno(flog), LOCK_EX) < 0) { in logent()
74 (void) flock(fileno(flog), LOCK_UN); in logent()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DWindowsMMap.h67 #define flock __llvm_profile_flock macro
78 int flock(int fd, int operation);
H A DInstrProfilingUtil.c138 struct flock s_flock; in lprofLockFd()
156 flock(fd, LOCK_EX); in lprofLockFd()
163 struct flock s_flock; in lprofUnlockFd()
181 flock(fd, LOCK_UN); in lprofUnlockFd()
/freebsd/sys/sys/
H A Dlockf.h42 struct flock;
121 typedef int lf_iterator(struct vnode *, struct flock *, void *);
H A Dfcntl.h303 struct flock { struct
379 int flock(int, int);
/freebsd/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/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dfcntl.h31 typedef struct flock flock64_t;
/freebsd/sbin/dump/
H A Ditime.c92 (void) flock(fileno(df), LOCK_SH); in initdumptimes()
170 (void) flock(fd, LOCK_EX); in putdumptime()
/freebsd/usr.bin/lockf/
H A Dlockf.c272 if (flock(fd, LOCK_EX | LOCK_NB) == -1) { in acquire_lock()
298 flock(lockfd, LOCK_UN); in cleanup()
/freebsd/sys/nfs/
H A Dnfs_lock.h69 struct flock lm_fl; /* The lock request. */
/freebsd/usr.sbin/cron/cron/
H A Dexterns.h113 extern int flock(int, int);
/freebsd/lib/libc/sys/
H A Dlockf.c43 struct flock fl; in lockf()
/freebsd/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c53 struct flock fl; in main()
/freebsd/sys/contrib/openzfs/lib/libshare/
H A Dnfs.c54 while ((err = flock(*nfs_lock_fd, LOCK_EX)) != 0 && errno == EINTR) in nfs_exports_lock()
73 if (flock(*nfs_lock_fd, LOCK_UN) != 0) in nfs_exports_unlock()
/freebsd/contrib/openbsm/compat/
H A Dflopen.h68 if (flock(fd, operation) == -1) { in flopen()
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp21 struct flock fl; in fileLock()
/freebsd/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);

123456