Home
last modified time | relevance | path

Searched refs:l_type (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()
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/lib/libc/sys/
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/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/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/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/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/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/usr.sbin/rpc.lockd/
H A Dkern.c185 switch (msg.lm_fl.l_type) { in client_request()
199 "unknown lock type: %d", msg.lm_fl.l_type); 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()
592 mp->lm_fl.l_type, mp->lm_fl.l_whence); in show()
/freebsd/sys/compat/linux/
H A Dlinux_file.c1191 l_short l_type; member
1207 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock()
1210 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock()
1213 bsd_flock->l_type = F_UNLCK; in linux_to_bsd_flock()
1216 bsd_flock->l_type = -1; in linux_to_bsd_flock()
1229 switch (bsd_flock->l_type) { in bsd_to_linux_flock()
1248 l_short l_type; member
1264 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock64()
1267 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock64()
1273 bsd_flock->l_type = -1; in linux_to_bsd_flock64()
[all …]
/freebsd/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/sys/nlm/
H A Dnlm_advlock.c294 && fl->l_type == F_WRLCK) { in nlm_advlock_internal()
310 fl->l_type = F_UNLCK; in nlm_advlock_internal()
314 fl->l_type = F_WRLCK; in nlm_advlock_internal()
459 newfl.l_type = F_UNLCK; in nlm_reclaim_free_lock()
712 newfl.l_type = fl->l_type; in nlm_record_lock()
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()
1102 fl->l_type = F_RDLCK; in nlm_getlock()
1106 fl->l_type = F_UNLCK; in nlm_getlock()
H A Dnlm_prot_impl.c1897 fl.l_type = F_WRLCK; in nlm_do_test()
1899 fl.l_type = F_RDLCK; in nlm_do_test()
1906 if (fl.l_type == F_UNLCK) { in nlm_do_test()
1911 (fl.l_type == F_WRLCK); in nlm_do_test()
2004 fl.l_type = F_WRLCK; in nlm_do_lock()
2006 fl.l_type = F_RDLCK; in nlm_do_lock()
2032 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock()
2183 fl.l_type = F_WRLCK; in nlm_do_cancel()
2185 fl.l_type = F_RDLCK; in nlm_do_cancel()
2197 && af->af_fl.l_type == fl.l_type) { in nlm_do_cancel()
[all …]
/freebsd/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/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/sys/sys/
H A Dfcntl.h307 short l_type; /* lock type: read/write, etc. */ member
321 short l_type; /* lock type: read/write, etc. */ member
/freebsd/tools/test/stress2/misc/
H A Dfcntl.sh92 fl.l_type = F_WRLCK;
124 fl.l_type = F_UNLCK;
H A Dnullfs22.sh112 fl.l_type = F_WRLCK;
145 fl.l_type = F_UNLCK;
H A Dexlock2.sh129 fl.l_type = F_WRLCK;
/freebsd/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/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/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp23 fl.l_type = lock_type; in fileLock()
/freebsd/sys/dev/ice/
H A Dice_switch.c2721 enum ice_sw_lkup_type l_type; in ice_add_eth_mac_rule() local
2723 l_type = em_list_itr->fltr_info.lkup_type; in ice_add_eth_mac_rule()
2724 recp_list = &sw->recp_list[l_type]; in ice_add_eth_mac_rule()
2726 if (l_type != ICE_SW_LKUP_ETHERTYPE_MAC && in ice_add_eth_mac_rule()
2727 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_add_eth_mac_rule()
2771 enum ice_sw_lkup_type l_type; in ice_remove_eth_mac_rule() local
2773 l_type = em_list_itr->fltr_info.lkup_type; in ice_remove_eth_mac_rule()
2776 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_remove_eth_mac_rule()
2779 recp_list = &sw->recp_list[l_type]; in ice_remove_eth_mac_rule()
3071 if (l_type != ICE_SW_LKUP_MAC) in ice_remove_mac_rule()
[all …]
/freebsd/sys/kern/
H A Dkern_descrip.c437 fl.l_type = ofl.l_type; in kern_fcntl_freebsd()
474 ofl.l_type = fl.l_type; in kern_fcntl_freebsd()
657 switch (flp->l_type) { in kern_fcntl()
731 flp->l_type = F_UNLCK; in kern_fcntl()
749 if (flp->l_type != F_RDLCK && flp->l_type != F_WRLCK && in kern_fcntl()
2492 lf.l_type = F_UNLCK; in fdclearlocks()
2802 lf.l_type = F_UNLCK; in closef()
2825 lf.l_type = F_UNLCK; in closef()
3715 lf.l_type = F_UNLCK; in sys_flock()
3721 lf.l_type = F_WRLCK; in sys_flock()
[all …]
/freebsd/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