Home
last modified time | relevance | path

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

12

/freebsd-14.2/lib/libc/gen/
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-14.2/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()
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()
899 fl.l_type = F_WRLCK; in test11()
[all …]
/freebsd-14.2/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-14.2/usr.sbin/rpc.lockd/
H A Dkern.c188 case F_WRLCK: in client_request()
264 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in test_request()
272 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request()
296 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request()
335 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in lock_request()
342 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request()
367 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request()
/freebsd-14.2/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-14.2/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-14.2/crypto/openssh/openbsd-compat/
H A Dbsd-flock.c53 fl.l_type = F_WRLCK; in flock()
/freebsd-14.2/contrib/sendmail/libsmutil/
H A Dlockfile.c51 lfd.l_type = F_WRLCK;
H A Dt-lockfile.c219 if (F_WRLCK == lfd.l_type)
/freebsd-14.2/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-14.2/crypto/heimdal/lib/roken/
H A Dflock.c69 arg.l_type = F_WRLCK; in rk_flock()
/freebsd-14.2/sys/nlm/
H A Dnlm_advlock.c295 && fl->l_type == F_WRLCK) { in nlm_advlock_internal()
315 fl->l_type = F_WRLCK; in nlm_advlock_internal()
778 exclusive = (fl->l_type == F_WRLCK); in nlm_setlock()
1051 exclusive = (fl->l_type == F_WRLCK); in nlm_getlock()
1101 fl->l_type = F_WRLCK; in nlm_getlock()
H A Dnlm_prot_impl.c1874 fl.l_type = F_WRLCK; in nlm_do_test()
1888 (fl.l_type == F_WRLCK); in nlm_do_test()
1981 fl.l_type = F_WRLCK; in nlm_do_lock()
2160 fl.l_type = F_WRLCK; in nlm_do_cancel()
/freebsd-14.2/sys/kern/
H A Dkern_lockf.c852 && (x->lf_type == F_WRLCK || y->lf_type == F_WRLCK) in lf_blocks()
1382 if (lock->lf_type == F_WRLCK) in lf_setlock()
1406 lock->lf_type == F_WRLCK) { in lf_setlock()
1409 lock->lf_type = F_WRLCK; in lf_setlock()
2624 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
2650 lf->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
2659 blk->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
/freebsd-14.2/sys/sys/
H A Dfcntl.h287 #define F_WRLCK 3 /* exclusive or write lock */ macro
/freebsd-14.2/tools/test/stress2/misc/
H A Dexlock2.sh131 fl.l_type = F_WRLCK;
H A Dfcntl.sh90 fl.l_type = F_WRLCK;
H A Dnullfs22.sh112 fl.l_type = F_WRLCK;
/freebsd-14.2/contrib/capsicum-test/
H A Dfcntl.cc226 fl.l_type = F_WRLCK; in TEST()
236 fl.l_type = F_WRLCK; in TEST()
/freebsd-14.2/contrib/netbsd-tests/kernel/
H A Dt_lockf.c94 fl.l_type = F_WRLCK; in trylocks()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c144 s_flock.l_type = F_WRLCK; in lprofLockFd()
/freebsd-14.2/contrib/sendmail/libsmdb/
H A Dsmdb.c94 lfd.l_type = F_WRLCK;
/freebsd-14.2/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-14.2/bin/cat/
H A Dcat.c213 stdout_lock.l_type = F_WRLCK; in main()
/freebsd-14.2/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