Home
last modified time | relevance | path

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

12

/freebsd/tests/sys/file/
H A Dflock_helper.c209 if (fcntl(fd, F_SETLK, &fl) < 0) in test2()
229 res = fcntl(fd, F_SETLK, &fl); in test2()
280 if (fcntl(fd, F_SETLK, &fl) < 0) in test3()
349 if (fcntl(fd, F_SETLK, &fl) < 0) in test4()
424 if (fcntl(fd, F_SETLK, &fl) < 0) in test5()
437 if (fcntl(fd, F_SETLK, &fl) < 0) in test5()
470 if (fcntl(fd, F_SETLK, &fl) < 0) in test5()
510 if (fcntl(fd, F_SETLK, &fl) < 0) in test6()
523 if (fcntl(fd, F_SETLK, &fl) < 0) in test6()
540 if (fcntl(fd, F_SETLK, &fl) < 0) in test6()
[all …]
H A Dpath_test.c834 ATF_REQUIRE_ERRNO(EBADF, fcntl(pathfd, F_SETLK, &flk) == -1); in ATF_TC_BODY()
837 ATF_REQUIRE_ERRNO(EBADF, fcntl(pathfd, F_SETLK, &flk) == -1); in ATF_TC_BODY()
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp45 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock()
53 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock()
57 return fileLock(m_fd, F_SETLK, F_UNLCK, m_start, m_len); in DoUnlock()
/freebsd/crypto/heimdal/lib/roken/
H A Dflock.c46 #if defined(HAVE_FCNTL) && defined(F_SETLK) in rk_flock()
55 cmd = F_SETLK; in rk_flock()
62 code = fcntl(fd, F_SETLK, &arg); in rk_flock()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-flock.c48 #if defined(F_SETLK) && defined(F_SETLKW) in flock()
70 rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl); in flock()
/freebsd/lib/libc/sys/
H A Dlockf.c52 cmd = F_SETLK; in lockf()
60 cmd = F_SETLK; in lockf()
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_file.c45 if (fcntl(fd, F_SETLK, &lock) < 0) { in zed_file_lock()
72 if (fcntl(fd, F_SETLK, &lock) < 0) in zed_file_unlock()
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc509 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
535 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
561 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
587 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
615 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
643 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
670 ASSERT_EQ(-1, fcntl(fd, F_SETLK, &fl)); in TEST_F()
H A Dflush.cc235 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
H A Drelease.cc232 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_fcntl.c53 { BSM_F_SETLK, F_SETLK },
54 { BSM_F_SETLKW, F_SETLK },
/freebsd/sys/security/audit/
H A Dbsm_fcntl.c55 { BSM_F_SETLK, F_SETLK },
56 { BSM_F_SETLKW, F_SETLK },
/freebsd/tools/test/stress2/misc/
H A Dfcntl.sh95 while (fcntl(fd, F_SETLK, &fl) < 0) {
125 if (fcntl(fd, F_SETLK, &fl) < 0)
H A Dexlock2.sh131 if (fcntl(fd, F_SETLK, &fl) < 0) {
H A Dnullfs22.sh146 if (fcntl(fd, F_SETLK, &fl) < 0)
/freebsd/contrib/sendmail/libsmutil/
H A Dlockfile.c55 action = F_SETLK;
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c768 RL(rump_sys_fcntl(fd, F_SETLK, &l)); in fcntl_lock()
774 ATF_REQUIRE_ERRNO(EAGAIN, rump_sys_fcntl(fd2, F_SETLK, &l)); in fcntl_lock()
779 RL(rump_sys_fcntl(fd, F_SETLK, &l)); in fcntl_lock()
784 RL(rump_sys_fcntl(fd2, F_SETLK, &l)); in fcntl_lock()
902 RL(rump_sys_fcntl(fd[i], F_SETLK, &lock[i])); in fcntl_getlock_pids()
/freebsd/contrib/sendmail/contrib/
H A Dqtool.pl374 my $fcntl_status = fcntl (DEVNULL, Fcntl::F_SETLK, $fcntl_structlockp);
401 my $result2 = fcntl (FILE_TO_LOCK, Fcntl::F_SETLK, $fcntl_structlockp);
436 my $result2 = fcntl ($file, Fcntl::F_SETLK, $fcntl_structunlockp);
H A Dmailprio272 eval 'sub F_SETLK {8;}' unless defined &F_SETLK; # nonblocking
293 X $ret = fcntl($FH, ($lock & &LOCK_NB) ? &F_SETLK : &F_SETLKW, $flock);
/freebsd/sys/nlm/
H A Dnlm_advlock.c227 if (op == F_SETLK || op == F_UNLCK) in nlm_advlock_internal()
292 case F_SETLK: in nlm_advlock_internal()
307 vp, F_SETLK, fl, flags & ~F_WAIT, in nlm_advlock_internal()
324 &timo, retries, vp, F_SETLK, fl, in nlm_advlock_internal()
511 error = nlm_advlock_internal(vp, NULL, F_SETLK, fl, F_REMOTE, in nlm_client_recover_lock()
/freebsd/sys/sys/
H A Dfcntl.h255 #define F_SETLK 12 /* set record locking information */ macro
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc231 EXPECT_OK(fcntl(cap, F_SETLK, (long)&fl)); in TEST()
254 EXPECT_OK(fcntl(cap, F_SETLK, (long)&fl)); in TEST()
/freebsd/contrib/sendmail/libsmdb/
H A Dsmdb.c99 action = F_SETLK;
/freebsd/sys/kern/
H A Dkern_lockf.c481 if (ap->a_op != F_SETLK && (*statep) == NULL) { in lf_advlockasync()
661 case F_SETLK: in lf_advlockasync()
728 KASSERT(ap->a_op == F_SETLK, ("EDOOFUS")); in lf_advlockasync()
H A Dkern_descrip.c446 newcmd = F_SETLK; in kern_fcntl_freebsd()
455 case F_SETLK: in kern_fcntl_freebsd()
625 /* FALLTHROUGH F_SETLK */ in kern_fcntl()
627 case F_SETLK: in kern_fcntl()
668 error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_SETLK, in kern_fcntl()
681 error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_SETLK, in kern_fcntl()
3731 error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, in sys_flock()

12