| /freebsd-14.2/tests/sys/file/ |
| H A D | flock_helper.c | 152 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() 469 fl.l_type = F_UNLCK; in test5() 508 fl.l_type = F_WRLCK; in test6() 572 fl.l_type = F_UNLCK; in test6() 611 fl.l_type = F_WRLCK; in test7() 645 fl.l_type = F_RDLCK; in test7() [all …]
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | lockf.c | 53 fl.l_type = F_UNLCK; in lockf() 57 fl.l_type = F_WRLCK; in lockf() 61 fl.l_type = F_WRLCK; in lockf() 64 fl.l_type = F_WRLCK; in lockf() 69 if (fl.l_type == F_UNLCK || (fl.l_sysid == 0 && in lockf()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_file.c | 40 lock.l_type = F_WRLCK; in zed_file_lock() 67 lock.l_type = F_UNLCK; in zed_file_unlock() 93 lock.l_type = F_WRLCK; in zed_file_is_locked() 101 if (lock.l_type == F_UNLCK) in zed_file_is_locked()
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | locks.cc | 230 fl.l_type = F_RDLCK; in TEST_F() 280 fl.l_type = F_RDLCK; in TEST_F() 343 fl.l_type = F_RDLCK; in TEST_F() 402 fl.l_type = F_RDLCK; in TEST_F() 467 fl.l_type = F_RDLCK; in TEST_F() 506 fl.l_type = F_RDLCK; in TEST_F() 532 fl.l_type = F_UNLCK; in TEST_F() 558 fl.l_type = F_RDLCK; in TEST_F() 584 fl.l_type = F_RDLCK; in TEST_F() 612 fl.l_type = F_RDLCK; in TEST_F() [all …]
|
| /freebsd-14.2/crypto/openssh/openbsd-compat/ |
| H A D | bsd-flock.c | 53 fl.l_type = F_WRLCK; in flock() 57 fl.l_type = F_RDLCK; in flock() 61 fl.l_type = F_UNLCK; in flock()
|
| /freebsd-14.2/contrib/sendmail/libsmutil/ |
| H A D | lockfile.c | 49 lfd.l_type = F_UNLCK; 51 lfd.l_type = F_WRLCK; 53 lfd.l_type = F_RDLCK;
|
| H A D | t-lockfile.c | 213 lfd.l_type = F_RDLCK; 219 if (F_WRLCK == lfd.l_type)
|
| /freebsd-14.2/crypto/heimdal/lib/roken/ |
| H A D | flock.c | 61 arg.l_type = F_UNLCK; in rk_flock() 65 arg.l_type = F_RDLCK; in rk_flock() 69 arg.l_type = F_WRLCK; in rk_flock()
|
| /freebsd-14.2/usr.sbin/rpc.lockd/ |
| H A D | kern.c | 186 switch (msg.lm_fl.l_type) { in client_request() 200 "unknown lock type: %d", msg.lm_fl.l_type); 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() 593 mp->lm_fl.l_type, mp->lm_fl.l_whence); in show()
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_file.c | 1193 l_short l_type; member 1209 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock() 1212 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock() 1215 bsd_flock->l_type = F_UNLCK; in linux_to_bsd_flock() 1218 bsd_flock->l_type = -1; in linux_to_bsd_flock() 1231 switch (bsd_flock->l_type) { in bsd_to_linux_flock() 1250 l_short l_type; member 1266 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock64() 1269 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock64() 1275 bsd_flock->l_type = -1; in linux_to_bsd_flock64() [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/kernel/ |
| H A D | t_lockf.c | 91 fl.l_type = F_RDLCK; in trylocks() 94 fl.l_type = F_WRLCK; in trylocks() 97 fl.l_type = F_UNLCK; in trylocks()
|
| /freebsd-14.2/sys/nlm/ |
| H A D | nlm_advlock.c | 295 && fl->l_type == F_WRLCK) { in nlm_advlock_internal() 311 fl->l_type = F_UNLCK; in nlm_advlock_internal() 315 fl->l_type = F_WRLCK; in nlm_advlock_internal() 460 newfl.l_type = F_UNLCK; in nlm_reclaim_free_lock() 713 newfl.l_type = fl->l_type; in nlm_record_lock() 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() 1103 fl->l_type = F_RDLCK; in nlm_getlock() 1107 fl->l_type = F_UNLCK; in nlm_getlock()
|
| H A D | nlm_prot_impl.c | 1874 fl.l_type = F_WRLCK; in nlm_do_test() 1876 fl.l_type = F_RDLCK; in nlm_do_test() 1883 if (fl.l_type == F_UNLCK) { in nlm_do_test() 1888 (fl.l_type == F_WRLCK); in nlm_do_test() 1981 fl.l_type = F_WRLCK; in nlm_do_lock() 1983 fl.l_type = F_RDLCK; in nlm_do_lock() 2009 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock() 2160 fl.l_type = F_WRLCK; in nlm_do_cancel() 2162 fl.l_type = F_RDLCK; in nlm_do_cancel() 2174 && af->af_fl.l_type == fl.l_type) { in nlm_do_cancel() [all …]
|
| /freebsd-14.2/contrib/capsicum-test/ |
| H A D | fcntl.cc | 199 fl.l_type = F_RDLCK; in TEST() 226 fl.l_type = F_WRLCK; in TEST() 236 fl.l_type = F_WRLCK; in TEST() 241 EXPECT_NE(F_UNLCK, fl.l_type); in TEST() 250 fl.l_type = F_UNLCK; in TEST()
|
| /freebsd-14.2/contrib/sendmail/libsmdb/ |
| H A D | smdb.c | 92 lfd.l_type = F_UNLCK; 94 lfd.l_type = F_WRLCK; 96 lfd.l_type = F_RDLCK;
|
| /freebsd-14.2/sys/sys/ |
| H A D | fcntl.h | 309 short l_type; /* lock type: read/write, etc. */ member 323 short l_type; /* lock type: read/write, etc. */ member
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | fcntl.sh | 90 fl.l_type = F_WRLCK; 123 fl.l_type = F_UNLCK;
|
| H A D | nullfs22.sh | 112 fl.l_type = F_WRLCK; 145 fl.l_type = F_UNLCK;
|
| H A D | exlock2.sh | 131 fl.l_type = F_WRLCK;
|
| /freebsd-14.2/contrib/netbsd-tests/fs/vfs/ |
| H A D | t_vnops.c | 761 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock() 778 l.l_type = F_UNLCK; in fcntl_lock() 783 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock() 823 if (l.l_type == F_UNLCK) in fcntl_getlocks() 939 ATF_CHECK_EQ(result[j].l_type, expect[j].l_type ); in fcntl_getlock_pids()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingUtil.c | 144 s_flock.l_type = F_WRLCK; in lprofLockFd() 169 s_flock.l_type = F_UNLCK; in lprofUnlockFd()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | LockFilePosix.cpp | 23 fl.l_type = lock_type; in fileLock()
|
| /freebsd-14.2/sys/dev/ice/ |
| H A D | ice_switch.c | 2732 enum ice_sw_lkup_type l_type; in ice_add_eth_mac_rule() local 2734 l_type = em_list_itr->fltr_info.lkup_type; in ice_add_eth_mac_rule() 2735 recp_list = &sw->recp_list[l_type]; in ice_add_eth_mac_rule() 2737 if (l_type != ICE_SW_LKUP_ETHERTYPE_MAC && in ice_add_eth_mac_rule() 2738 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_add_eth_mac_rule() 2782 enum ice_sw_lkup_type l_type; in ice_remove_eth_mac_rule() local 2784 l_type = em_list_itr->fltr_info.lkup_type; in ice_remove_eth_mac_rule() 2787 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_remove_eth_mac_rule() 2790 recp_list = &sw->recp_list[l_type]; in ice_remove_eth_mac_rule() 3083 if (l_type != ICE_SW_LKUP_MAC) in ice_remove_mac_rule() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_descrip.c | 439 fl.l_type = ofl.l_type; in kern_fcntl_freebsd() 476 ofl.l_type = fl.l_type; in kern_fcntl_freebsd() 659 switch (flp->l_type) { in kern_fcntl() 733 flp->l_type = F_UNLCK; in kern_fcntl() 751 if (flp->l_type != F_RDLCK && flp->l_type != F_WRLCK && in kern_fcntl() 2494 lf.l_type = F_UNLCK; in fdclearlocks() 2804 lf.l_type = F_UNLCK; in closef() 2827 lf.l_type = F_UNLCK; in closef() 3717 lf.l_type = F_UNLCK; in sys_flock() 3723 lf.l_type = F_WRLCK; in sys_flock() [all …]
|
| /freebsd-14.2/sys/fs/smbfs/ |
| H A D | smbfs_vnops.c | 953 switch (fl->l_type) { in smbfs_advlock() 973 int oldtype = fl->l_type; in smbfs_advlock() 974 fl->l_type = F_UNLCK; in smbfs_advlock() 977 fl->l_type = oldtype; in smbfs_advlock()
|