Home
last modified time | relevance | path

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

12

/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()
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 Dlockf.c53 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 Dzed_file.c40 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 Dlocks.cc230 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 Dbsd-flock.c53 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 Dlockfile.c49 lfd.l_type = F_UNLCK;
51 lfd.l_type = F_WRLCK;
53 lfd.l_type = F_RDLCK;
H A Dt-lockfile.c213 lfd.l_type = F_RDLCK;
219 if (F_WRLCK == lfd.l_type)
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Dflock.c61 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 Dkern.c186 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 Dlinux_file.c1193 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 Dt_lockf.c91 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 Dnlm_advlock.c295 && 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 Dnlm_prot_impl.c1874 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 Dfcntl.cc199 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 Dsmdb.c92 lfd.l_type = F_UNLCK;
94 lfd.l_type = F_WRLCK;
96 lfd.l_type = F_RDLCK;
/freebsd-14.2/sys/sys/
H A Dfcntl.h309 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 Dfcntl.sh90 fl.l_type = F_WRLCK;
123 fl.l_type = F_UNLCK;
H A Dnullfs22.sh112 fl.l_type = F_WRLCK;
145 fl.l_type = F_UNLCK;
H A Dexlock2.sh131 fl.l_type = F_WRLCK;
/freebsd-14.2/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c761 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 DInstrProfilingUtil.c144 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 DLockFilePosix.cpp23 fl.l_type = lock_type; in fileLock()
/freebsd-14.2/sys/dev/ice/
H A Dice_switch.c2732 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 Dkern_descrip.c439 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 Dsmbfs_vnops.c953 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()

12