Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/tests/sys/file/
H A Dflock_helper.c152 fl1.l_type = F_WRLCK; in test1()
196 fl.l_type = F_WRLCK; in test2()
267 fl.l_type = F_WRLCK; in test3()
336 fl.l_type = F_WRLCK; in test4()
374 FAIL(fl.l_type != F_WRLCK); in test4()
422 fl.l_type = F_WRLCK; in test5()
508 fl.l_type = F_WRLCK; in test6()
611 fl.l_type = F_WRLCK; in test7()
794 fl.l_type = F_WRLCK; in test9()
831 fl.l_type = F_WRLCK; in test10()
[all …]
/freebsd/lib/libc/sys/
H A Dlockf.c57 fl.l_type = F_WRLCK; in lockf()
61 fl.l_type = F_WRLCK; in lockf()
64 fl.l_type = F_WRLCK; in lockf()
/freebsd/usr.sbin/rpc.lockd/
H A Dkern.c187 case F_WRLCK: in client_request()
263 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in test_request()
271 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request()
295 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request()
334 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in lock_request()
341 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request()
366 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request()
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp41 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock()
45 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock()
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_file.c40 lock.l_type = F_WRLCK; in zed_file_lock()
93 lock.l_type = F_WRLCK; in zed_file_is_locked()
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc182 expect_setlk(ino, F_WRLCK, 0); in TEST_F()
201 expect_setlk(ino, F_WRLCK, EAGAIN); in TEST_F()
334 out.body.getlk.lk.type = F_WRLCK; in TEST_F()
350 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
391 out.body.getlk.lk.type = F_WRLCK; in TEST_F()
411 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
456 out.body.getlk.lk.type = F_WRLCK; in TEST_F()
476 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c761 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock()
783 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock()
859 { 0, 2, 0, F_WRLCK, SEEK_SET }, in fcntl_getlock_pids()
860 { 2, 1, 0, F_WRLCK, SEEK_SET }, in fcntl_getlock_pids()
861 { 7, 5, 0, F_WRLCK, SEEK_SET }, in fcntl_getlock_pids()
862 { 4, 3, 0, F_WRLCK, SEEK_SET }, in fcntl_getlock_pids()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-flock.c53 fl.l_type = F_WRLCK; in flock()
/freebsd/contrib/sendmail/libsmutil/
H A Dlockfile.c51 lfd.l_type = F_WRLCK;
H A Dt-lockfile.c219 if (F_WRLCK == lfd.l_type)
/freebsd/crypto/heimdal/lib/roken/
H A Dflock.c69 arg.l_type = F_WRLCK; in rk_flock()
/freebsd/sys/nlm/
H A Dnlm_advlock.c294 && fl->l_type == F_WRLCK) { in nlm_advlock_internal()
314 fl->l_type = F_WRLCK; in nlm_advlock_internal()
777 exclusive = (fl->l_type == F_WRLCK); in nlm_setlock()
1050 exclusive = (fl->l_type == F_WRLCK); in nlm_getlock()
1100 fl->l_type = F_WRLCK; in nlm_getlock()
H A Dnlm_prot_impl.c1902 fl.l_type = F_WRLCK; in nlm_do_test()
1916 (fl.l_type == F_WRLCK); in nlm_do_test()
2009 fl.l_type = F_WRLCK; in nlm_do_lock()
2188 fl.l_type = F_WRLCK; in nlm_do_cancel()
/freebsd/sys/kern/
H A Dkern_lockf.c850 && (x->lf_type == F_WRLCK || y->lf_type == F_WRLCK) in lf_blocks()
1380 if (lock->lf_type == F_WRLCK) in lf_setlock()
1404 lock->lf_type == F_WRLCK) { in lf_setlock()
1407 lock->lf_type = F_WRLCK; in lf_setlock()
2622 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
2648 lf->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
2657 blk->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
/freebsd/sys/sys/
H A Dfcntl.h285 #define F_WRLCK 3 /* exclusive or write lock */ macro
/freebsd/tools/test/stress2/misc/
H A Dexlock2.sh129 fl.l_type = F_WRLCK;
H A Dfcntl.sh92 fl.l_type = F_WRLCK;
H A Dnullfs22.sh112 fl.l_type = F_WRLCK;
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc226 fl.l_type = F_WRLCK; in TEST()
236 fl.l_type = F_WRLCK; in TEST()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_lockf.c94 fl.l_type = F_WRLCK; in trylocks()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c144 s_flock.l_type = F_WRLCK; in lprofLockFd()
/freebsd/contrib/sendmail/libsmdb/
H A Dsmdb.c94 lfd.l_type = F_WRLCK;
/freebsd/sys/compat/linux/
H A Dlinux_file.c1212 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock()
1235 case F_WRLCK: in bsd_to_linux_flock()
1269 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock64()
1292 case F_WRLCK: in bsd_to_linux_flock64()
/freebsd/bin/cat/
H A Dcat.c199 stdout_lock.l_type = F_WRLCK; in main()
/freebsd/contrib/sendmail/contrib/
H A Dmailprio276 eval 'sub F_WRLCK {3;}' unless defined &F_WRLCK;
289 X elsif ($lock & &LOCK_EX) { $type = &F_WRLCK; }

12