Home
last modified time | relevance | path

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

/xnu-10063.141.1/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.c469 err = fcntl(fd, F_SETLK, &lreq);
478 err = fcntl(fd, F_SETLK, &lreq);
/xnu-10063.141.1/bsd/security/audit/
H A Daudit_bsm_fcntl.c56 { BSM_F_SETLK, F_SETLK },
57 { BSM_F_SETLKW, F_SETLK },
/xnu-10063.141.1/libsyscall/wrappers/cancelable/
H A Dfcntl-base.c42 case F_SETLK: in fcntl()
/xnu-10063.141.1/bsd/sys/
H A Dfcntl.h281 #define F_SETLK 8 /* set record locking information */ macro
/xnu-10063.141.1/bsd/kern/
H A Dkern_descrip.c3000 case F_SETLK: in sys_fcntl_nocancel()
3043 F_SETLK, &fl); in sys_fcntl_nocancel()
3069 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3077 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3114 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
3124 F_SETLK, &fl, flg, &context, timeout); in sys_fcntl_nocancel()
5760 error = mac_file_check_lock(kauth_cred_get(), fp->fp_glob, F_SETLK, &lf); in sys_flock()
5765 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-10063.141.1/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-10063.141.1/bsd/vfs/
H A Dvfs_xattr.c3429 error = VNOP_ADVLOCK(xvp, (caddr_t)xvp, F_SETLK, &lf, F_FLOCK | F_WAIT, context, NULL); in lock_xattrfile()
H A Dvfs_syscalls.c4702 F_SETLK, &lf); in open1()
4707 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1()