Home
last modified time | relevance | path

Searched refs:F_GETLK (Results 1 – 23 of 23) sorted by relevance

/freebsd/lib/libc/sys/
H A Dlockf.c67 (filedes, F_GETLK, &fl) == -1) in lockf()
/freebsd/tests/sys/file/
H A Dflock_helper.c156 if (fcntl(fd, F_GETLK, &fl1) < 0) in test1()
368 if (fcntl(fd, F_GETLK, &fl) < 0) in test4()
865 if (fcntl(fd, F_GETLK, &fl) < 0) in test10()
914 res = fcntl(fd, F_GETLK, &fl); in test11()
945 res = fcntl(fd, F_GETLK, &fl); in test11()
1400 res = fcntl(fd, F_GETLK, &fl); in test15()
H A Dpath_test.c828 ATF_REQUIRE_ERRNO(EBADF, fcntl(pathfd, F_GETLK, &flk) == -1); in ATF_TC_BODY()
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc233 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); in TEST_F()
283 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); in TEST_F()
346 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); in TEST_F()
405 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); in TEST_F()
470 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); in TEST_F()
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_file.c98 if (fcntl(fd, F_GETLK, &lock) < 0) in zed_file_is_locked()
/freebsd/tests/sys/kern/
H A Dkern_copyin.c68 ret = fcntl(scratch_file, F_GETLK, (const void *)uaddr); in copyin_checker2()
/freebsd/sys/sys/
H A Dfcntl.h254 #define F_GETLK 11 /* get record locking information */ macro
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_fcntl.c70 { BSM_F_GETLK, F_GETLK },
/freebsd/sys/security/audit/
H A Dbsm_fcntl.c72 { BSM_F_GETLK, F_GETLK },
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc203 EXPECT_EQ(0, CHECK_FCNTL(CAP_FLOCK, caps, F_GETLK, (long)&fl)); in TEST()
240 EXPECT_OK(fcntl(fd, F_GETLK, (long)&fl)); in TEST()
/freebsd/contrib/sendmail/libsmutil/
H A Dt-lockfile.c214 action = F_GETLK;
/freebsd/sys/compat/linux/
H A Dlinux_file.c1378 error = kern_fcntl(td, args->fd, F_GETLK, (intptr_t)&bsd_flock); in fcntl_common()
1485 error = kern_fcntl(td, args->fd, F_GETLK, (intptr_t)&bsd_flock); in linux_fcntl64()
/freebsd/lib/libsysdecode/
H A Dflags.c902 case F_GETLK: in sysdecode_fcntl_arg()
/freebsd/sys/kern/
H A Dkern_descrip.c443 newcmd = F_GETLK; in kern_fcntl_freebsd()
454 case F_GETLK: in kern_fcntl_freebsd()
477 } else if (cmd == F_GETLK) { in kern_fcntl_freebsd()
739 case F_GETLK: in kern_fcntl()
768 error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_GETLK, flp, in kern_fcntl()
H A Dkern_lockf.c670 case F_GETLK: in lf_advlockasync()
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c821 RL(rump_sys_fcntl(fildes, F_GETLK, &l)); in fcntl_getlocks()
/freebsd/sys/nlm/
H A Dnlm_advlock.c365 case F_GETLK: in nlm_advlock_internal()
H A Dnlm_prot_impl.c1900 error = VOP_ADVLOCK(vs.vs_vp, NULL, F_GETLK, &fl, F_REMOTE); in nlm_do_test()
/freebsd/sys/fs/smbfs/
H A Dsmbfs_vnops.c984 case F_GETLK: in smbfs_advlock()
/freebsd/sys/fs/fuse/
H A Dfuse_vnops.c489 case F_GETLK: in fuse_vnop_advlock()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3955 case F_GETLK: in freebsd32_fcntl()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clrpcops.c4388 if (op == F_GETLK) { in nfsrpc_advlock()
/freebsd/contrib/sqlite3/
H A Dsqlite3.c38172 # define F_GETLK 12
38176 # define F_GETLK 5
38798 if( op==F_GETLK ){
38825 osFcntl(fd, F_GETLK, &l2);
39546 if( osFcntl(pFile->h, F_GETLK, &lock) ){
42374 if( osFcntl(pShmNode->hShm, F_GETLK, &f)<0 ){
42564 if( osFcntl(pShmNode->hShm, F_GETLK, &lock)!=0 ) {
43702 if( osFcntl(pNew->h, F_GETLK, &lockInfo)!=-1 ) {
43742 if( osFcntl(pNew->h, F_GETLK, &lockInfo)!=-1 ) {