Home
last modified time | relevance | path

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

12

/freebsd/tests/sys/file/
H A Dflock_helper.c152 fl1.l_type = F_WRLCK; in test1()
163 FAIL(fl1.l_type != F_UNLCK); 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()
374 FAIL(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()
[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/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()
290 ASSERT_EQ(F_UNLCK, fl.l_type); in TEST_F()
343 fl.l_type = F_RDLCK; in TEST_F()
350 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
402 fl.l_type = F_RDLCK; in TEST_F()
411 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
467 fl.l_type = F_RDLCK; in TEST_F()
476 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
506 fl.l_type = F_RDLCK; in TEST_F()
[all …]
/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/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.c1193 l_short l_type; member
1207 switch (linux_flock->l_type) { in linux_to_bsd_flock()
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()
1233 linux_flock->l_type = LINUX_F_RDLCK; in bsd_to_linux_flock()
1236 linux_flock->l_type = LINUX_F_WRLCK; in bsd_to_linux_flock()
1239 linux_flock->l_type = LINUX_F_UNLCK; in bsd_to_linux_flock()
[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.c1902 fl.l_type = F_WRLCK; in nlm_do_test()
1904 fl.l_type = F_RDLCK; in nlm_do_test()
1911 if (fl.l_type == F_UNLCK) { in nlm_do_test()
1916 (fl.l_type == F_WRLCK); in nlm_do_test()
2009 fl.l_type = F_WRLCK; in nlm_do_lock()
2011 fl.l_type = F_RDLCK; in nlm_do_lock()
2037 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock()
2188 fl.l_type = F_WRLCK; in nlm_do_cancel()
2190 fl.l_type = F_RDLCK; in nlm_do_cancel()
2202 && 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.c2732 enum ice_sw_lkup_type l_type;
2734 l_type = em_list_itr->fltr_info.lkup_type;
2735 recp_list = &sw->recp_list[l_type];
2737 if (l_type != ICE_SW_LKUP_ETHERTYPE_MAC &&
2738 l_type != ICE_SW_LKUP_ETHERTYPE)
2782 enum ice_sw_lkup_type l_type;
2784 l_type = em_list_itr->fltr_info.lkup_type;
2786 if (l_type != ICE_SW_LKUP_ETHERTYPE_MAC &&
2787 l_type != ICE_SW_LKUP_ETHERTYPE) in ice_remove_eth_mac()
2790 recp_list = &sw->recp_list[l_type]; in ice_remove_eth_mac()
2713 enum ice_sw_lkup_type l_type; ice_add_eth_mac_rule() local
2763 enum ice_sw_lkup_type l_type; ice_remove_eth_mac_rule() local
3059 enum ice_sw_lkup_type l_type = list_itr->fltr_info.lkup_type; ice_remove_mac_rule() local
3121 enum ice_sw_lkup_type l_type = v_list_itr->fltr_info.lkup_type; ice_remove_vlan_rule() local
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_interceptors.cpp219 lock.l_type = F_RDLCK; in TEST_F()
226 ASSERT_THAT(lock.l_type, F_UNLCK); in TEST_F()
/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()
700 if (error != 0 || flp->l_type == F_UNLCK || in kern_fcntl()
701 flp->l_type == F_UNLCKSYS) { in kern_fcntl()
731 flp->l_type = F_UNLCK; in kern_fcntl()
749 if (flp->l_type != F_RDLCK && flp->l_type ! in kern_fcntl()
[all...]

12