Home
last modified time | relevance | path

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

123456

/freebsd-12.1/tests/sys/fs/fusefs/
H A Dlocks.cc131 ASSERT_EQ(0, flock(fd, LOCK_EX)) << strerror(errno); in TEST_F()
190 ASSERT_NE(0, flock(fd, LOCK_EX | LOCK_NB)); in TEST_F()
204 struct flock fl; in TEST_F()
231 struct flock fl; in TEST_F()
274 struct flock fl; in TEST_F()
328 struct flock fl; in TEST_F()
352 struct flock fl; in TEST_F()
378 struct flock fl; in TEST_F()
404 struct flock fl; in TEST_F()
434 struct flock fl; in TEST_F()
[all …]
/freebsd-12.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-12.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 …]
/freebsd-12.1/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; in cvt_flock2iflock()
105 print_flock(struct flock *flp) in print_flock()
116 struct flock *flp;
262 struct flock fl;
/freebsd-12.1/cddl/compat/opensolaris/misc/
H A Dfsshare.c176 error = flock(fd, LOCK_EX); in fsshare_main()
196 error = flock(fileno(oldfd), LOCK_EX); in fsshare_main()
234 flock(fileno(oldfd), LOCK_UN); in fsshare_main()
238 flock(fileno(newfd), LOCK_UN); in fsshare_main()
/freebsd-12.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()
962 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_clearlock()
1037 struct vnode *vp, int op, struct flock *fl, int flags, in nlm_getlock()
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c110 struct flock s_flock; in lprofLockFd()
128 flock(fd, LOCK_EX); in lprofLockFd()
135 struct flock s_flock; in lprofUnlockFd()
153 flock(fd, LOCK_UN); in lprofUnlockFd()
H A DWindowsMMap.h63 int flock(int fd, int operation);
/freebsd-12.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-12.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-12.1/contrib/sendmail/libsmutil/
H A Dlockfile.c45 struct flock lfd;
76 if (flock(fd, type) >= 0)
/freebsd-12.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-12.1/sys/sys/
H A Dlockf.h45 struct flock;
125 typedef int lf_iterator(struct vnode *, struct flock *, void *);
H A Dfcntl.h273 struct flock { struct
322 int flock(int, int);
/freebsd-12.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-12.1/contrib/apr/locks/unix/
H A Dproc_mutex.c523 static struct flock proc_mutex_lock_it;
524 static struct flock proc_mutex_unlock_it;
711 rc = flock(mutex->interproc->filedes, LOCK_EX);
725 rc = flock(mutex->interproc->filedes, LOCK_EX | LOCK_NB);
743 rc = flock(mutex->interproc->filedes, LOCK_UN);
/freebsd-12.1/sbin/dump/
H A Ditime.c98 (void) flock(fileno(df), LOCK_SH); in initdumptimes()
176 (void) flock(fd, LOCK_EX); in putdumptime()
/freebsd-12.1/sys/nfs/
H A Dnfs_lock.h70 struct flock lm_fl; /* The lock request. */
/freebsd-12.1/lib/libc/gen/
H A Dlockf.c46 struct flock fl; in lockf()
/freebsd-12.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-12.1/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c55 struct flock fl; in main()
/freebsd-12.1/contrib/sendmail/libsmdb/
H A Dsmdb.c88 struct flock lfd;
136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
/freebsd-12.1/contrib/openbsm/compat/
H A Dflopen.h68 if (flock(fd, operation) == -1) { in flopen()
/freebsd-12.1/sys/kern/
H A Dkern_lockf.c108 static int lf_hash_owner(caddr_t, struct vnode *, struct flock *, int);
109 static int lf_owner_matches(struct lock_owner *, caddr_t, struct flock *,
131 static int lf_getlock(struct lockf *, struct lockf_entry *, struct flock *);
304 lf_hash_owner(caddr_t id, struct vnode *vp, struct flock *fl, int flags) in lf_hash_owner()
325 lf_owner_matches(struct lock_owner *lo, caddr_t id, struct flock *fl, in lf_owner_matches()
421 struct flock *fl = ap->a_fl; in lf_advlockasync()
1578 lf_getlock(struct lockf *state, struct lockf_entry *lock, struct flock *fl) in lf_getlock()
1867 struct flock fl;
2002 lf_clearremotesys_iterator(struct vnode *vp, struct flock *fl, void *arg) in lf_clearremotesys_iterator()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/posix/
H A DLockFilePosix.cpp22 struct flock fl; in fileLock()

123456