Home
last modified time | relevance | path

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

123

/netbsd/lib/libc/gen/
H A Dlockf.c60 fl.l_type = F_UNLCK; in __weak_alias()
64 fl.l_type = F_WRLCK; in __weak_alias()
68 fl.l_type = F_WRLCK; in __weak_alias()
71 fl.l_type = F_WRLCK; in __weak_alias()
74 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) in __weak_alias()
/netbsd/sys/compat/linux/common/
H A Dlinux_fcntl.h59 short l_type; member
67 short l_type; member
131 switch (src->l_type) { \
133 dst->l_type = dst_f##_RDLCK; \
136 dst->l_type = dst_f##_UNLCK; \
139 dst->l_type = dst_f##_WRLCK; \
142 dst->l_type = -1; \
/netbsd/tools/compat/
H A Dflock.c51 fl.l_type = F_WRLCK; in flock()
55 fl.l_type = F_RDLCK; in flock()
59 fl.l_type = F_UNLCK; in flock()
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dflock.c63 arg.l_type = F_UNLCK; in rk_flock()
67 arg.l_type = F_RDLCK; in rk_flock()
71 arg.l_type = F_WRLCK; in rk_flock()
/netbsd/sys/compat/ultrix/
H A Dultrix_misc.c698 switch (ufl->l_type) { in ultrix_to_bsd_flock()
700 fl->l_type = F_RDLCK; in ultrix_to_bsd_flock()
703 fl->l_type = F_WRLCK; in ultrix_to_bsd_flock()
706 fl->l_type = F_UNLCK; in ultrix_to_bsd_flock()
726 switch (fl->l_type) { in bsd_to_ultrix_flock()
728 ufl->l_type = ULTRIX_F_RDLCK; in bsd_to_ultrix_flock()
731 ufl->l_type = ULTRIX_F_WRLCK; in bsd_to_ultrix_flock()
734 ufl->l_type = ULTRIX_F_UNLCK; in bsd_to_ultrix_flock()
H A Dultrix_flock.h4 int16_t l_type; member
/netbsd/sys/kern/
H A Dsys_descrip.c261 switch (fl->l_type) { in do_fcntl_lock()
299 if (fl->l_type != F_RDLCK && in do_fcntl_lock()
300 fl->l_type != F_WRLCK && in do_fcntl_lock()
301 fl->l_type != F_UNLCK) { in do_fcntl_lock()
638 lf.l_type = F_UNLCK; in sys_flock()
643 lf.l_type = F_WRLCK; in sys_flock()
646 lf.l_type = F_RDLCK; in sys_flock()
H A Dvfs_lockf.c788 fl->l_type = block->lf_type; in lf_getlock()
800 fl->l_type = F_UNLCK; in lf_getlock()
922 fl->l_type = F_UNLCK; in lf_advlock()
934 lock->lf_type = fl->l_type; in lf_advlock()
/netbsd/sys/compat/sunos/
H A Dsunos_ioctl.c932 short l_type; member
953 switch (iflp->l_type) { in bsd_to_sunos_flock()
955 oflp->l_type = SUNOS_F_RDLCK; in bsd_to_sunos_flock()
958 oflp->l_type = SUNOS_F_WRLCK; in bsd_to_sunos_flock()
961 oflp->l_type = SUNOS_F_UNLCK; in bsd_to_sunos_flock()
964 oflp->l_type = -1; in bsd_to_sunos_flock()
982 switch (iflp->l_type) { in sunos_to_bsd_flock()
984 oflp->l_type = F_RDLCK; in sunos_to_bsd_flock()
987 oflp->l_type = F_WRLCK; in sunos_to_bsd_flock()
990 oflp->l_type = F_UNLCK; in sunos_to_bsd_flock()
[all …]
/netbsd/external/gpl2/lvm2/dist/lib/misc/
H A Dlvm-file.c41 .l_type = F_WRLCK, in create_temp_name()
215 .l_type = lock_type, in fcntl_lock_file()
261 .l_type = F_UNLCK, in fcntl_unlock_file()
/netbsd/sys/compat/sunos32/
H A Dsunos32_ioctl.c958 short l_type; member
979 switch (iflp->l_type) { in bsd_to_sunos_flock()
981 oflp->l_type = SUNOS_F_RDLCK; in bsd_to_sunos_flock()
984 oflp->l_type = SUNOS_F_WRLCK; in bsd_to_sunos_flock()
987 oflp->l_type = SUNOS_F_UNLCK; in bsd_to_sunos_flock()
990 oflp->l_type = -1; in bsd_to_sunos_flock()
1008 switch (iflp->l_type) { in sunos_to_bsd_flock()
1010 oflp->l_type = F_RDLCK; in sunos_to_bsd_flock()
1013 oflp->l_type = F_WRLCK; in sunos_to_bsd_flock()
1016 oflp->l_type = F_UNLCK; in sunos_to_bsd_flock()
[all …]
/netbsd/external/bsd/openldap/dist/libraries/liblutil/
H A Dlockf.c92 file_lock.l_type = F_WRLCK; in lutil_lockf()
105 file_lock.l_type = F_UNLCK; in lutil_unlockf()
/netbsd/sys/fs/nfs/nlm/
H A Dnlm_advlock.c296 && fl->l_type == F_WRLCK) { in nlm_advlock_internal()
312 fl->l_type = F_UNLCK; in nlm_advlock_internal()
316 fl->l_type = F_WRLCK; in nlm_advlock_internal()
461 newfl.l_type = F_UNLCK; in nlm_reclaim_free_lock()
714 newfl.l_type = fl->l_type; in nlm_record_lock()
779 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 Dnlm_prot_impl.c1910 fl.l_type = F_WRLCK; in nlm_do_test()
1912 fl.l_type = F_RDLCK; in nlm_do_test()
1919 if (fl.l_type == F_UNLCK) { in nlm_do_test()
1924 (fl.l_type == F_WRLCK); in nlm_do_test()
2017 fl.l_type = F_WRLCK; in nlm_do_lock()
2019 fl.l_type = F_RDLCK; in nlm_do_lock()
2045 && af->af_fl.l_type == fl.l_type) { in nlm_do_lock()
2196 fl.l_type = F_WRLCK; in nlm_do_cancel()
2198 fl.l_type = F_RDLCK; in nlm_do_cancel()
2210 && af->af_fl.l_type == fl.l_type) { in nlm_do_cancel()
[all …]
/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()
/netbsd/sys/compat/linux32/common/
H A Dlinux32_fcntl.c67 short l_type; member
75 short l_type; member
/netbsd/tests/fs/vfs/
H A Dt_vnops.c800 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock()
817 l.l_type = F_UNLCK; in fcntl_lock()
822 l.l_type = F_RDLCK | F_WRLCK; in fcntl_lock()
862 if (l.l_type == F_UNLCK) in fcntl_getlocks()
978 ATF_CHECK_EQ(result[j].l_type, expect[j].l_type ); in fcntl_getlock_pids()
/netbsd/external/bsd/libbind/dist/bsd/
H A Dftruncate.c57 fl.l_type = F_WRLCK; in __ftruncate()
/netbsd/external/gpl3/gdb/dist/gold/
H A Dftruncate.c76 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
/netbsd/external/gpl2/xcvs/dist/lib/
H A Dftruncate.c59 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
/netbsd/external/gpl3/binutils/dist/gold/
H A Dftruncate.c76 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
/netbsd/external/gpl3/binutils.old/dist/gold/
H A Dftruncate.c76 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
/netbsd/external/gpl3/gdb.old/dist/gold/
H A Dftruncate.c76 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dmyflock.c133 lock.l_type = lock_ops[operation & ~MYFLOCK_OP_NOWAIT]; in myflock()
/netbsd/sys/fs/nfs/common/
H A Dnfs_lock.c307 if (fl->l_type == F_UNLCK) in nfs_dolock()
343 fl->l_type = F_UNLCK; in nfs_dolock()

123