Home
last modified time | relevance | path

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

/xnu-11215.1.10/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-11215.1.10/bsd/security/audit/
H A Daudit_bsm_fcntl.c56 { BSM_F_SETLK, F_SETLK },
57 { BSM_F_SETLKW, F_SETLK },
/xnu-11215.1.10/libsyscall/wrappers/cancelable/
H A Dfcntl-base.c42 case F_SETLK: in fcntl()
/xnu-11215.1.10/bsd/sys/
H A Dfcntl.h281 #define F_SETLK 8 /* set record locking information */ macro
/xnu-11215.1.10/bsd/kern/
H A Dkern_descrip.c3018 case F_SETLK: in sys_fcntl_nocancel()
3061 F_SETLK, &fl); in sys_fcntl_nocancel()
3087 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3095 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3132 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3142 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
5793 error = mac_file_check_lock(kauth_cred_get(), fp->fp_glob, F_SETLK, &lf); in sys_flock()
5798 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-11215.1.10/bsd/nfs/
H A Dnfs_syscalls.c556 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in fhopen()
/xnu-11215.1.10/bsd/vfs/
H A Dvfs_xattr.c3249 if ((error = VNOP_ADVLOCK(xvp, (caddr_t)fg, F_SETLK, in open_xattrfile()
H A Dvfs_syscalls.c4711 F_SETLK, &lf); in open1()
4716 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1()