Home
last modified time | relevance | path

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

/xnu-12377.61.12/tests/
H A Dlockf_EOF_77264182.c43 .l_type = F_WRLCK,
52 fl.l_type = F_WRLCK;
H A Dlockf_basic.c43 fl->l_type = (flags & EXCL) ? F_WRLCK : F_RDLCK; in ofd_get()
55 fl->l_type = (flags & EXCL) ? F_WRLCK : F_RDLCK; in posix_get()
67 .l_type = (flags & EXCL) ? F_WRLCK : F_RDLCK, in posix_lock()
80 .l_type = (flags & EXCL) ? F_WRLCK : F_RDLCK, in ofd_lock()
117 if (flags == EXCL && fl->l_type == F_WRLCK) { in flequal()
666 struct flock fl = {.l_start = -10, .l_len = 10, .l_type = F_WRLCK, .l_whence = SEEK_END};
675 …struct flock fl = {.l_start = -file_len, .l_len = file_len, .l_type = F_WRLCK, .l_whence = SEEK_EN…
684 …struct flock fl = {.l_start = -(file_len + 10), .l_len = 20, .l_type = F_WRLCK, .l_whence = SEEK_E…
H A Dfile_leases.c160 err = fcntl(fd, F_SETLEASE, F_WRLCK);
222 err = fcntl(fd, F_SETLEASE, F_WRLCK);
274 err = fcntl(fd, F_SETLEASE, F_SETLEASE_ARG(F_WRLCK, 3));
664 err = fcntl(fd, F_SETLEASE, F_WRLCK);
669 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease: %s", g_testfile);
800 err = fcntl(fd, F_SETLEASE, F_WRLCK);
839 err = fcntl(fd, F_SETLEASE, F_WRLCK);
848 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease with dup fd: %d", dup_fd);
900 err = fcntl(fd, F_SETLEASE, F_WRLCK);
909 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease with fork fd: %d", fd);
[all …]
/xnu-12377.61.12/bsd/kern/
H A Dkern_lockf.c544 if (lock->lf_type == F_WRLCK) { in lf_setlock()
712 lock->lf_type == F_WRLCK) { in lf_setlock()
718 lock->lf_type = F_WRLCK; in lf_setlock()
868 overlap->lf_type == F_WRLCK) { in lf_setlock()
912 overlap->lf_type == F_WRLCK) { in lf_setlock()
1227 if ((lock->lf_type == F_WRLCK || overlap->lf_type == F_WRLCK)) { in lf_getblock()
1543 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1549 lock->lf_type == F_WRLCK ? "exclusive" : in lf_print()
1597 lf->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
1613 blk->lf_type == F_WRLCK ? "exclusive" : in lf_printlist()
H A Dkern_descrip.c3109 case F_WRLCK: in sys_fcntl_nocancel()
3127 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3154 case F_WRLCK: in sys_fcntl_nocancel()
3211 case F_WRLCK: in sys_fcntl_nocancel()
5105 if (fl_type == F_WRLCK && expcounts == 0) { in sys_fcntl_nocancel()
5126 if (vnode_vtype(vp) == VDIR && fl_type == F_WRLCK) { in sys_fcntl_nocancel()
5134 case F_WRLCK: in sys_fcntl_nocancel()
5824 lf.l_type = F_WRLCK; in sys_flock()
/xnu-12377.61.12/bsd/sys/
H A Dfcntl.h410 #define F_WRLCK 3 /* exclusive or write lock */ macro
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_subr.c12816 } else if (fl_type == F_WRLCK && vp->v_usecount > expcounts) { in check_for_open_conflict()
12889 if (fl_type == F_WRLCK || fl->fl_flags & FL_FLAG_RELEASE_PENDING) { in acquire_file_lease()
13028 if ((fl->fl_type == F_WRLCK && fl->fl_pid != pid) || in check_for_lease_conflict()
13029 (breaker_fl_type == F_WRLCK && fl->fl_pid != pid)) { in check_for_lease_conflict()
13219 fl_type = (oflags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) ? F_WRLCK : F_RDLCK; in vnode_breaklease()
13257 if (fl_type == F_WRLCK) { in vnode_breaklease()
H A Dvfs_xattr.c2288 lf.l_type = F_WRLCK; in open_xattrfile()
H A Dvfs_syscalls.c4997 lf.l_type = F_WRLCK; in open1()
/xnu-12377.61.12/bsd/nfs/
H A Dnfs_syscalls.c550 lf.l_type = F_WRLCK; in fhopen()