Home
last modified time | relevance | path

Searched refs:F_SETLK (Results 1 – 11 of 11) sorted by relevance

/xnu-12377.61.12/tests/
H A Dlockf_EOF_77264182.c46 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "wrlock");
49 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "unlock");
53 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "wrlock 2");
H A Dlockf_basic.c70 return fcntl(fd, (flags & WAIT) ? F_SETLKW : F_SETLK, &fl); in posix_lock()
96 return fcntl(fd, F_SETLK, &fl); in posix_unlock()
667 T_ASSERT_POSIX_SUCCESS(fcntl(a, F_SETLK, &fl), "SEEK_END: -10, 10");
676 T_ASSERT_POSIX_SUCCESS(fcntl(a, F_SETLK, &fl), "SEEK_END: -file_len, file_len");
685 …T_EXPECT_TRUE(fcntl(a, F_SETLK, &fl) && errno == EINVAL, "SEEK_END: -(file_len + 10), 20 => EINVAL…
H A Dfile_leases.c470 err = fcntl(fd, F_SETLK, &lreq);
479 err = fcntl(fd, F_SETLK, &lreq);
/xnu-12377.61.12/bsd/security/audit/
H A Daudit_bsm_fcntl.c56 { BSM_F_SETLK, F_SETLK },
57 { BSM_F_SETLKW, F_SETLK },
/xnu-12377.61.12/libsyscall/wrappers/cancelable/
H A Dfcntl-base.c42 case F_SETLK: in fcntl()
/xnu-12377.61.12/bsd/sys/
H A Dfcntl.h287 #define F_SETLK 8 /* set record locking information */ macro
/xnu-12377.61.12/bsd/kern/
H A Dkern_descrip.c3027 case F_SETLK: in sys_fcntl_nocancel()
3081 F_SETLK, &fl); in sys_fcntl_nocancel()
3107 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3115 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3152 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3162 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
5832 error = mac_file_check_lock(kauth_cred_get(), fp->fp_glob, F_SETLK, &lf); in sys_flock()
5837 error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, in sys_flock()
H A Dkern_lockf.c220 if (ap->a_op != F_SETLK) { in lf_advlock()
328 case F_SETLK: in lf_advlock()
/xnu-12377.61.12/bsd/nfs/
H A Dnfs_syscalls.c558 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in fhopen()
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_xattr.c2292 error = VNOP_ADVLOCK(xvp, (caddr_t)fg, F_SETLK, &lf, F_FLOCK | F_WAIT, context, NULL); in open_xattrfile()
H A Dvfs_syscalls.c5007 F_SETLK, &lf); in open1()
5012 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1()