| /freebsd-13.1/tests/sys/file/ |
| H A D | flock_helper.c | 154 fl1.l_type = F_WRLCK; in test1() 198 fl.l_type = F_WRLCK; in test2() 269 fl.l_type = F_WRLCK; in test3() 338 fl.l_type = F_WRLCK; in test4() 424 fl.l_type = F_WRLCK; in test5() 471 fl.l_type = F_UNLCK; in test5() 510 fl.l_type = F_WRLCK; in test6() 574 fl.l_type = F_UNLCK; in test6() 613 fl.l_type = F_WRLCK; in test7() 647 fl.l_type = F_RDLCK; in test7() [all …]
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | lockf.c | 56 fl.l_type = F_UNLCK; in lockf() 60 fl.l_type = F_WRLCK; in lockf() 64 fl.l_type = F_WRLCK; in lockf() 67 fl.l_type = F_WRLCK; in lockf() 72 if (fl.l_type == F_UNLCK || (fl.l_sysid == 0 && in lockf()
|
| /freebsd-13.1/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-13.1/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-13.1/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;
|
| /freebsd-13.1/tests/sys/fs/fusefs/ |
| H A D | locks.cc | 232 fl.l_type = F_RDLCK; in TEST_F() 282 fl.l_type = F_RDLCK; in TEST_F() 286 ASSERT_EQ(F_UNLCK, fl.l_type); in TEST_F() 333 fl.l_type = F_RDLCK; in TEST_F() 366 fl.l_type = F_RDLCK; in TEST_F() 392 fl.l_type = F_UNLCK; in TEST_F() 418 fl.l_type = F_RDLCK; in TEST_F() 444 fl.l_type = F_RDLCK; in TEST_F() 470 fl.l_type = F_RDLCK; in TEST_F() 498 fl.l_type = F_RDLCK; in TEST_F() [all …]
|
| H A D | flush.cc | 234 fl.l_type = F_RDLCK; in TEST_F()
|
| /freebsd-13.1/contrib/apr/file_io/unix/ |
| H A D | flock.c | 39 l.l_type = F_RDLCK; in apr_file_lock() 41 l.l_type = F_WRLCK; in apr_file_lock() 96 l.l_type = F_UNLCK; in apr_file_unlock()
|
| /freebsd-13.1/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-13.1/usr.sbin/rpc.lockd/ |
| H A D | kern.c | 188 switch (msg.lm_fl.l_type) { in client_request() 202 "unknown lock type: %d", msg.lm_fl.l_type); in client_request() 266 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in test_request() 274 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request() 298 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in test_request() 337 msg->lm_fl.l_type == F_WRLCK ? "write" : "read", in lock_request() 344 arg4.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request() 369 arg.exclusive = msg->lm_fl.l_type == F_WRLCK ? 1 : 0; in lock_request() 600 mp->lm_fl.l_type, mp->lm_fl.l_whence); in show()
|
| /freebsd-13.1/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-13.1/sys/compat/linux/ |
| H A D | linux_file.c | 1406 l_short l_type; member 1422 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock() 1425 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock() 1428 bsd_flock->l_type = F_UNLCK; in linux_to_bsd_flock() 1431 bsd_flock->l_type = -1; in linux_to_bsd_flock() 1444 switch (bsd_flock->l_type) { in bsd_to_linux_flock() 1463 l_short l_type; member 1479 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock64() 1482 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock64() 1488 bsd_flock->l_type = -1; in linux_to_bsd_flock64() [all …]
|
| /freebsd-13.1/sys/nlm/ |
| H A D | nlm_advlock.c | 297 && fl->l_type == F_WRLCK) { in nlm_advlock_internal() 313 fl->l_type = F_UNLCK; in nlm_advlock_internal() 317 fl->l_type = F_WRLCK; in nlm_advlock_internal() 462 newfl.l_type = F_UNLCK; in nlm_reclaim_free_lock() 715 newfl.l_type = fl->l_type; in nlm_record_lock() 780 exclusive = (fl->l_type == F_WRLCK); in nlm_setlock() 1053 exclusive = (fl->l_type == F_WRLCK); in nlm_getlock() 1103 fl->l_type = F_WRLCK; in nlm_getlock() 1105 fl->l_type = F_RDLCK; in nlm_getlock() 1109 fl->l_type = F_UNLCK; in nlm_getlock()
|
| H A D | nlm_prot_impl.c | 1876 fl.l_type = F_WRLCK; in nlm_do_test() 1878 fl.l_type = F_RDLCK; in nlm_do_test() 1885 if (fl.l_type == F_UNLCK) { in nlm_do_test() 1890 (fl.l_type == F_WRLCK); in nlm_do_test() 1983 fl.l_type = F_WRLCK; in nlm_do_lock() 1985 fl.l_type = F_RDLCK; in nlm_do_lock() 2011 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock() 2162 fl.l_type = F_WRLCK; in nlm_do_cancel() 2164 fl.l_type = F_RDLCK; in nlm_do_cancel() 2176 && af->af_fl.l_type == fl.l_type) { in nlm_do_cancel() [all …]
|
| /freebsd-13.1/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-13.1/sys/sys/ |
| H A D | fcntl.h | 310 short l_type; /* lock type: read/write, etc. */ member 324 short l_type; /* lock type: read/write, etc. */ member
|
| /freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingUtil.c | 138 s_flock.l_type = F_WRLCK; in lprofLockFd() 163 s_flock.l_type = F_UNLCK; in lprofUnlockFd()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | LockFilePosix.cpp | 25 fl.l_type = lock_type; in fileLock()
|
| /freebsd-13.1/sys/dev/ice/ |
| H A D | ice_switch.c | 2656 enum ice_sw_lkup_type l_type; in ice_add_eth_mac_rule() local 2658 l_type = em_list_itr->fltr_info.lkup_type; in ice_add_eth_mac_rule() 2659 recp_list = &sw->recp_list[l_type]; in ice_add_eth_mac_rule() 2661 if (l_type != ICE_SW_LKUP_ETHERTYPE_MAC && in ice_add_eth_mac_rule() 2662 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_add_eth_mac_rule() 2706 enum ice_sw_lkup_type l_type; in ice_remove_eth_mac_rule() local 2708 l_type = em_list_itr->fltr_info.lkup_type; in ice_remove_eth_mac_rule() 2711 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_remove_eth_mac_rule() 2714 recp_list = &sw->recp_list[l_type]; in ice_remove_eth_mac_rule() 2925 if (l_type != ICE_SW_LKUP_MAC) in ice_remove_mac_rule() [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_descrip.c | 429 fl.l_type = ofl.l_type; in kern_fcntl_freebsd() 466 ofl.l_type = fl.l_type; in kern_fcntl_freebsd() 642 switch (flp->l_type) { in kern_fcntl() 716 flp->l_type = F_UNLCK; in kern_fcntl() 734 if (flp->l_type != F_RDLCK && flp->l_type != F_WRLCK && in kern_fcntl() 2568 lf.l_type = F_UNLCK; in fdclearlocks() 2898 lf.l_type = F_UNLCK; in closef() 2921 lf.l_type = F_UNLCK; in closef() 3738 lf.l_type = F_UNLCK; in sys_flock() 3744 lf.l_type = F_WRLCK; in sys_flock() [all …]
|
| H A D | kern_lockf.c | 489 fl->l_type = F_UNLCK; in lf_advlockasync() 581 lock->lf_type = fl->l_type; in lf_advlockasync() 1585 fl->l_type = block->lf_type; in lf_getlock() 1595 fl->l_type = F_UNLCK; in lf_getlock() 1904 ldesc->fl.l_type = F_UNLCK; in lf_iteratelocks_sysid() 1971 ldesc->fl.l_type = F_UNLCK; in lf_iteratelocks_vnode()
|
| /freebsd-13.1/sys/fs/smbfs/ |
| H A D | smbfs_vnops.c | 1076 switch (fl->l_type) { 1096 int oldtype = fl->l_type; 1097 fl->l_type = F_UNLCK; 1100 fl->l_type = oldtype;
|
| /freebsd-13.1/usr.bin/at/ |
| H A D | at.c | 250 lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; in writefile() 309 lock.l_type = F_UNLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; in writefile()
|