Home
last modified time | relevance | path

Searched refs:F_RDLCK (Results 1 – 8 of 8) sorted by relevance

/xnu-8796.141.3/tests/
H A Dfile_leases.c122 err = fcntl(fd, F_SETLEASE, F_RDLCK);
127 T_ASSERT_EQ(err, F_RDLCK, "Retrieve lease: %s", testfile);
142 err = fcntl(fd, F_SETLEASE, F_RDLCK);
178 err = fcntl(fd, F_SETLEASE, F_RDLCK);
245 err = fcntl(fd, F_SETLEASE, F_RDLCK);
298 err = fcntl(fd, F_SETLEASE, F_SETLEASE_ARG(F_RDLCK, 2));
323 err = fcntl(fd, F_SETLEASE, F_RDLCK);
377 err = fcntl(dir_fd, F_SETLEASE, F_RDLCK);
466 lreq.l_type = F_RDLCK;
671 err = fcntl(fd, F_SETLEASE, F_RDLCK);
[all …]
/xnu-8796.141.3/bsd/kern/
H A Dkern_lockf.c870 if (lock->lf_type == F_RDLCK && in lf_setlock()
914 if (lock->lf_type == F_RDLCK && in lf_setlock()
1545 lock->lf_type == F_RDLCK ? "shared" : in lf_print()
1551 lock->lf_type == F_RDLCK ? "shared" : in lf_print()
1599 lf->lf_type == F_RDLCK ? "shared" : in lf_printlist()
1615 blk->lf_type == F_RDLCK ? "shared" : in lf_printlist()
H A Dkern_descrip.c3049 case F_RDLCK: in sys_fcntl_nocancel()
3075 (F_RDLCK == fl.l_type || F_WRLCK == fl.l_type)) { in sys_fcntl_nocancel()
3092 case F_RDLCK: in sys_fcntl_nocancel()
3157 case F_RDLCK: in sys_fcntl_nocancel()
4999 case F_RDLCK: in sys_fcntl_nocancel()
5680 lf.l_type = F_RDLCK; in sys_flock()
/xnu-8796.141.3/bsd/sys/
H A Dfcntl.h441 #define F_RDLCK 1 /* shared or read lock */ macro
/xnu-8796.141.3/bsd/nfs/
H A Dnfs_syscalls.c548 lf.l_type = F_RDLCK; in fhopen()
/xnu-8796.141.3/bsd/vfs/
H A Dvfs_subr.c12303 if (fl_type == F_RDLCK) { in check_for_open_conflict()
12566 modify_file_lease(vp, fl, F_RDLCK, NULL); in handle_lease_break_timedout()
12695 fl_type = (oflags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) ? F_WRLCK : F_RDLCK; in vnode_breaklease()
12702 if (fl_type == F_RDLCK && !vfs_context_can_break_leases(ctx)) { in vnode_breaklease()
H A Dvfs_xattr.c2656 locktype = (fileflags & O_EXLOCK) ? F_WRLCK : F_RDLCK; in open_xattrfile()
H A Dvfs_syscalls.c4637 lf.l_type = F_RDLCK; in open1()