Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 – 11 of 11) sorted by relevance

/xnu-8020.121.3/tests/
H A Dlockf_EOF_77264182.c43 .l_type = F_WRLCK,
52 fl.l_type = F_WRLCK;
/xnu-8020.121.3/bsd/kern/
H A Dkern_lockf.c535 if (lock->lf_type == F_WRLCK) { in lf_setlock()
703 lock->lf_type == F_WRLCK) { in lf_setlock()
709 lock->lf_type = F_WRLCK; in lf_setlock()
859 overlap->lf_type == F_WRLCK) { in lf_setlock()
903 overlap->lf_type == F_WRLCK) { in lf_setlock()
1162 if ((lock->lf_type == F_WRLCK || overlap->lf_type == F_WRLCK)) { in lf_getblock()
1478 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1484 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1532 lf->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
1548 blk->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
H A Dkern_descrip.c3063 case F_WRLCK: in sys_fcntl_nocancel()
3081 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3108 case F_WRLCK: in sys_fcntl_nocancel()
3165 case F_WRLCK: in sys_fcntl_nocancel()
5390 lf.l_type = F_WRLCK; in sys_flock()
/xnu-8020.121.3/bsd/sys/
H A Dfcntl.h416 #define F_WRLCK 3 /* exclusive or write lock */ macro
/xnu-8020.121.3/bsd/nfs/
H A Dnfs4_vnops.c3627 if ((nflp1->nfl_type != F_WRLCK) && (nflp2->nfl_type != F_WRLCK)) { in nfs_file_lock_conflict()
3666 ((nflp->nfl_type == F_WRLCK) ? in nfs4_setlock_rpc()
3669 ((nflp->nfl_type == F_WRLCK) ? in nfs4_setlock_rpc()
3815 nfsm_chain_add_32(error, &nmreq, (type == F_WRLCK) ? NFS_LOCK_TYPE_WRITE : NFS_LOCK_TYPE_READ); in nfs4_unlock_rpc()
3894 …nfsm_chain_add_32(error, &nmreq, (fl->l_type == F_WRLCK) ? NFS_LOCK_TYPE_WRITE : NFS_LOCK_TYPE_REA… in nfs4_getlock_rpc()
3921 fl->l_type = (val == NFS_LOCK_TYPE_WRITE) ? F_WRLCK : F_RDLCK; in nfs4_getlock_rpc()
3974 ((fl->l_type == F_WRLCK) || (nflp->nfl_type == F_WRLCK))) { in nfs_advlock_getlock()
4044 if ((type != F_RDLCK) && (type != F_WRLCK)) { in nfs_advlock_setlock()
4062 if ((style == NFS_FILE_LOCK_STYLE_FLOCK) && (type == F_WRLCK)) { in nfs_advlock_setlock()
6506 …nmp->nm_funcs->nf_unlock_rpc(np, nflp->nfl_owner, F_WRLCK, nflp->nfl_start, nflp->nfl_end, R_RECOV… in nfs_release_open_state_for_node()
H A Dnfs_lock.c965 msgreq->lmr_msg.lm_fl.l_type = F_WRLCK; in nfslockdans()
H A Dnfs_node.c985 …nmp->nm_funcs->nf_unlock_rpc(np, nflp->nfl_owner, F_WRLCK, nflp->nfl_start, nflp->nfl_end, R_RECOV… in nfs_vnop_reclaim()
H A Dnfs_syscalls.c800 lf.l_type = F_WRLCK; in fhopen()
H A Dnfs_vnops.c1346 nfs4_unlock_rpc(np, nlop, F_WRLCK, 0, UINT64_MAX, in nfs_close()
/xnu-8020.121.3/bsd/vfs/
H A Dvfs_xattr.c2656 locktype = (fileflags & O_EXLOCK) ? F_WRLCK : F_RDLCK; in open_xattrfile()
H A Dvfs_syscalls.c4236 lf.l_type = F_WRLCK; in open1()