Home
last modified time | relevance | path

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

/xnu-8792.61.2/tests/ !
H A Dlockf_EOF_77264182.c43 .l_type = F_WRLCK,
52 fl.l_type = F_WRLCK;
H A Dfile_leases.c159 err = fcntl(fd, F_SETLEASE, F_WRLCK);
221 err = fcntl(fd, F_SETLEASE, F_WRLCK);
273 err = fcntl(fd, F_SETLEASE, F_SETLEASE_ARG(F_WRLCK, 3));
663 err = fcntl(fd, F_SETLEASE, F_WRLCK);
668 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease: %s", g_testfile);
799 err = fcntl(fd, F_SETLEASE, F_WRLCK);
838 err = fcntl(fd, F_SETLEASE, F_WRLCK);
847 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease with dup fd: %d", dup_fd);
899 err = fcntl(fd, F_SETLEASE, F_WRLCK);
908 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease with fork fd: %d", fd);
[all …]
/xnu-8792.61.2/bsd/kern/ !
H A Dkern_lockf.c547 if (lock->lf_type == F_WRLCK) { in lf_setlock()
715 lock->lf_type == F_WRLCK) { in lf_setlock()
721 lock->lf_type = F_WRLCK; in lf_setlock()
871 overlap->lf_type == F_WRLCK) { in lf_setlock()
915 overlap->lf_type == F_WRLCK) { in lf_setlock()
1230 if ((lock->lf_type == F_WRLCK || overlap->lf_type == F_WRLCK)) { in lf_getblock()
1546 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1552 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1600 lf->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
1616 blk->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
H A Dkern_descrip.c3073 case F_WRLCK: in sys_fcntl_nocancel()
3091 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3118 case F_WRLCK: in sys_fcntl_nocancel()
3175 case F_WRLCK: in sys_fcntl_nocancel()
4987 if (fl_type == F_WRLCK && expcounts == 0) { in sys_fcntl_nocancel()
5008 if (vnode_vtype(vp) == VDIR && fl_type == F_WRLCK) { in sys_fcntl_nocancel()
5016 case F_WRLCK: in sys_fcntl_nocancel()
5694 lf.l_type = F_WRLCK; in sys_flock()
/xnu-8792.61.2/bsd/sys/ !
H A Dfcntl.h443 #define F_WRLCK 3 /* exclusive or write lock */ macro
/xnu-8792.61.2/bsd/vfs/ !
H A Dvfs_subr.c12131 } else if (fl_type == F_WRLCK && vp->v_usecount > expcounts) { in check_for_open_conflict()
12204 if (fl_type == F_WRLCK || fl->fl_flags & FL_FLAG_RELEASE_PENDING) { in acquire_file_lease()
12343 if ((fl->fl_type == F_WRLCK && fl->fl_pid != pid) || in check_for_lease_conflict()
12344 (breaker_fl_type == F_WRLCK && fl->fl_pid != pid)) { in check_for_lease_conflict()
12516 fl_type = (oflags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) ? F_WRLCK : F_RDLCK; in vnode_breaklease()
12550 if (fl_type == F_WRLCK) { in vnode_breaklease()
H A Dvfs_xattr.c2656 locktype = (fileflags & O_EXLOCK) ? F_WRLCK : F_RDLCK; in open_xattrfile()
H A Dvfs_syscalls.c4610 lf.l_type = F_WRLCK; in open1()
/xnu-8792.61.2/bsd/nfs/ !
H A Dnfs_syscalls.c515 lf.l_type = F_WRLCK; in fhopen()