Home
last modified time | relevance | path

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

12

/freebsd-12.1/tests/sys/file/
H A Dflock_helper.c154 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-12.1/lib/libc/gen/
H A Dlockf.c56 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-12.1/sys/i386/ibcs2/
H A Dibcs2_fcntl.c85 switch (flp->l_type) {
87 iflp->l_type = IBCS2_F_RDLCK;
90 iflp->l_type = IBCS2_F_WRLCK;
93 iflp->l_type = IBCS2_F_UNLCK;
109 flp->l_type, flp->l_whence); in print_flock()
121 switch (iflp->l_type) {
123 flp->l_type = F_RDLCK;
126 flp->l_type = F_WRLCK;
129 flp->l_type = F_UNLCK;
H A Dibcs2_fcntl.h64 short l_type; member
/freebsd-12.1/tests/sys/fs/fusefs/
H A Dlocks.cc215 fl.l_type = F_RDLCK; in TEST_F()
260 fl.l_type = F_RDLCK; in TEST_F()
264 ASSERT_EQ(F_UNLCK, fl.l_type); in TEST_F()
306 fl.l_type = F_RDLCK; in TEST_F()
313 EXPECT_EQ(F_WRLCK, fl.l_type); in TEST_F()
339 fl.l_type = F_RDLCK; in TEST_F()
365 fl.l_type = F_RDLCK; in TEST_F()
391 fl.l_type = F_RDLCK; in TEST_F()
417 fl.l_type = F_RDLCK; in TEST_F()
445 fl.l_type = F_RDLCK; in TEST_F()
[all …]
H A Dflush.cc224 fl.l_type = F_RDLCK; in TEST_F()
/freebsd-12.1/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-12.1/contrib/sendmail/libsmutil/
H A Dlockfile.c49 lfd.l_type = F_UNLCK;
51 lfd.l_type = F_WRLCK;
53 lfd.l_type = F_RDLCK;
/freebsd-12.1/contrib/apr/file_io/unix/
H A Dflock.c39 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-12.1/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-12.1/usr.sbin/rpc.lockd/
H A Dkern.c188 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-12.1/sys/compat/linux/
H A Dlinux_file.c1183 l_short l_type; member
1199 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock()
1202 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock()
1205 bsd_flock->l_type = F_UNLCK; in linux_to_bsd_flock()
1208 bsd_flock->l_type = -1; in linux_to_bsd_flock()
1221 switch (bsd_flock->l_type) { in bsd_to_linux_flock()
1240 l_short l_type; member
1256 bsd_flock->l_type = F_RDLCK; in linux_to_bsd_flock64()
1259 bsd_flock->l_type = F_WRLCK; in linux_to_bsd_flock64()
1265 bsd_flock->l_type = -1; in linux_to_bsd_flock64()
[all …]
/freebsd-12.1/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-12.1/sys/nlm/
H A Dnlm_advlock.c297 && 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()
1054 exclusive = (fl->l_type == F_WRLCK); in nlm_getlock()
1104 fl->l_type = F_WRLCK; in nlm_getlock()
1106 fl->l_type = F_RDLCK; in nlm_getlock()
1110 fl->l_type = F_UNLCK; in nlm_getlock()
H A Dnlm_prot_impl.c1887 fl.l_type = F_WRLCK; in nlm_do_test()
1889 fl.l_type = F_RDLCK; in nlm_do_test()
1896 if (fl.l_type == F_UNLCK) { in nlm_do_test()
1901 (fl.l_type == F_WRLCK); in nlm_do_test()
1994 fl.l_type = F_WRLCK; in nlm_do_lock()
1996 fl.l_type = F_RDLCK; in nlm_do_lock()
2022 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock()
2173 fl.l_type = F_WRLCK; in nlm_do_cancel()
2175 fl.l_type = F_RDLCK; in nlm_do_cancel()
2187 && af->af_fl.l_type == fl.l_type) { in nlm_do_cancel()
[all …]
/freebsd-12.1/sys/sys/
H A Dfcntl.h277 short l_type; /* lock type: read/write, etc. */ member
291 short l_type; /* lock type: read/write, etc. */ member
/freebsd-12.1/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-12.1/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-12.1/contrib/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c116 s_flock.l_type = F_WRLCK; in lprofLockFd()
141 s_flock.l_type = F_UNLCK; in lprofUnlockFd()
/freebsd-12.1/sys/nfs/
H A Dnfs_lock.c307 if (fl->l_type == F_UNLCK) in nfs_dolock()
343 fl->l_type = F_UNLCK; in nfs_dolock()
/freebsd-12.1/sys/kern/
H A Dkern_descrip.c438 fl.l_type = ofl.l_type; in kern_fcntl_freebsd()
475 ofl.l_type = fl.l_type; in kern_fcntl_freebsd()
644 switch (flp->l_type) { in kern_fcntl()
718 flp->l_type = F_UNLCK; in kern_fcntl()
736 if (flp->l_type != F_RDLCK && flp->l_type != F_WRLCK && in kern_fcntl()
2195 lf.l_type = F_UNLCK; in fdclearlocks()
2507 lf.l_type = F_UNLCK; in closef()
2530 lf.l_type = F_UNLCK; in closef()
3020 lf.l_type = F_UNLCK; in sys_flock()
3026 lf.l_type = F_WRLCK; in sys_flock()
[all …]
H A Dkern_lockf.c490 fl->l_type = F_UNLCK; in lf_advlockasync()
582 lock->lf_type = fl->l_type; in lf_advlockasync()
1588 fl->l_type = block->lf_type; in lf_getlock()
1598 fl->l_type = F_UNLCK; in lf_getlock()
1907 ldesc->fl.l_type = F_UNLCK; in lf_iteratelocks_sysid()
1973 ldesc->fl.l_type = F_UNLCK; in lf_iteratelocks_vnode()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Host/posix/
H A DLockFilePosix.cpp24 fl.l_type = lock_type; in fileLock()
/freebsd-12.1/sys/fs/smbfs/
H A Dsmbfs_vnops.c1078 switch (fl->l_type) {
1098 int oldtype = fl->l_type;
1099 fl->l_type = F_UNLCK;
1102 fl->l_type = oldtype;
/freebsd-12.1/usr.bin/at/
H A Dat.c250 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()

12