Home
last modified time | relevance | path

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

/xnu-10063.141.1/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.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-10063.141.1/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.c3071 case F_WRLCK: in sys_fcntl_nocancel()
3089 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3116 case F_WRLCK: in sys_fcntl_nocancel()
3173 case F_WRLCK: in sys_fcntl_nocancel()
5034 if (fl_type == F_WRLCK && expcounts == 0) { in sys_fcntl_nocancel()
5055 if (vnode_vtype(vp) == VDIR && fl_type == F_WRLCK) { in sys_fcntl_nocancel()
5063 case F_WRLCK: in sys_fcntl_nocancel()
5752 lf.l_type = F_WRLCK; in sys_flock()
/xnu-10063.141.1/bsd/sys/
H A Dfcntl.h448 #define F_WRLCK 3 /* exclusive or write lock */ macro
/xnu-10063.141.1/bsd/vfs/
H A Dvfs_subr.c12564 } else if (fl_type == F_WRLCK && vp->v_usecount > expcounts) { in check_for_open_conflict()
12637 if (fl_type == F_WRLCK || fl->fl_flags & FL_FLAG_RELEASE_PENDING) { in acquire_file_lease()
12776 if ((fl->fl_type == F_WRLCK && fl->fl_pid != pid) || in check_for_lease_conflict()
12777 (breaker_fl_type == F_WRLCK && fl->fl_pid != pid)) { in check_for_lease_conflict()
12967 fl_type = (oflags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) ? F_WRLCK : F_RDLCK; in vnode_breaklease()
13005 if (fl_type == F_WRLCK) { in vnode_breaklease()
H A Dvfs_xattr.c2650 locktype = (fileflags & O_EXLOCK) ? F_WRLCK : F_RDLCK; in open_xattrfile()
H A Dvfs_syscalls.c4692 lf.l_type = F_WRLCK; in open1()
/xnu-10063.141.1/bsd/nfs/
H A Dnfs_syscalls.c548 lf.l_type = F_WRLCK; in fhopen()