Home
last modified time | relevance | path

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

/xnu-8796.141.3/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-8796.141.3/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.c3057 case F_WRLCK: in sys_fcntl_nocancel()
3075 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3102 case F_WRLCK: in sys_fcntl_nocancel()
3159 case F_WRLCK: in sys_fcntl_nocancel()
4971 if (fl_type == F_WRLCK && expcounts == 0) { in sys_fcntl_nocancel()
4992 if (vnode_vtype(vp) == VDIR && fl_type == F_WRLCK) { in sys_fcntl_nocancel()
5000 case F_WRLCK: in sys_fcntl_nocancel()
5678 lf.l_type = F_WRLCK; in sys_flock()
/xnu-8796.141.3/bsd/sys/
H A Dfcntl.h443 #define F_WRLCK 3 /* exclusive or write lock */ macro
/xnu-8796.141.3/bsd/vfs/
H A Dvfs_subr.c12310 } else if (fl_type == F_WRLCK && vp->v_usecount > expcounts) { in check_for_open_conflict()
12383 if (fl_type == F_WRLCK || fl->fl_flags & FL_FLAG_RELEASE_PENDING) { in acquire_file_lease()
12522 if ((fl->fl_type == F_WRLCK && fl->fl_pid != pid) || in check_for_lease_conflict()
12523 (breaker_fl_type == F_WRLCK && fl->fl_pid != pid)) { in check_for_lease_conflict()
12695 fl_type = (oflags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) ? F_WRLCK : F_RDLCK; in vnode_breaklease()
12729 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.c4635 lf.l_type = F_WRLCK; in open1()
/xnu-8796.141.3/bsd/nfs/
H A Dnfs_syscalls.c546 lf.l_type = F_WRLCK; in fhopen()