| /freebsd/tests/sys/file/ |
| H A D | flock_helper.c | 173 * Test 2 - F_SETLK on locked region 209 if (fcntl(fd, F_SETLK, &fl) < 0) in test2() 210 err(1, "F_SETLK (child)"); in test2() 228 printf("2 - F_SETLK on locked region: "); in test2() 229 res = fcntl(fd, F_SETLK, &fl); in test2() 280 if (fcntl(fd, F_SETLK, &fl) < 0) in test3() 281 err(1, "F_SETLK (child)"); in test3() 349 if (fcntl(fd, F_SETLK, &fl) < 0) in test4() 350 err(1, "F_SETLK (child)"); in test4() 424 if (fcntl(fd, F_SETLK, &fl) < 0) in test5() [all …]
|
| /freebsd/lib/libsys/ |
| H A D | fcntl.2 | 373 .It Dv F_SETLK 380 .Dv F_SETLK 393 .Dv F_SETLK 473 .Dv F_SETLK 482 .Dv F_SETLK 601 .Dv F_SETLK , 630 .Dv F_SETLK 644 .Dv F_SETLK 690 .Dv F_SETLK 730 .Dv F_SETLK [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | LockFilePosix.cpp | 44 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock() 52 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock() 56 return fileLock(m_fd, F_SETLK, F_UNLCK, m_start, m_len); in DoUnlock()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | flock.c | 46 #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 D | bsd-flock.c | 48 #if defined(F_SETLK) && defined(F_SETLKW) in flock() 70 rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl); in flock()
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 71 #define F_SETLK 6 macro 101 #define F_SETLK F_SETLK64 macro
|
| /freebsd/lib/libc/sys/ |
| H A D | lockf.c | 52 cmd = F_SETLK; in lockf() 60 cmd = F_SETLK; in lockf()
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | fcntl.sh | 95 while (fcntl(fd, F_SETLK, &fl) < 0) { 97 err(1, "F_SETLK (child)"); 125 if (fcntl(fd, F_SETLK, &fl) < 0)
|
| H A D | exlock2.sh | 131 if (fcntl(fd, F_SETLK, &fl) < 0) {
|
| H A D | nullfs22.sh | 146 if (fcntl(fd, F_SETLK, &fl) < 0)
|
| /freebsd/tests/sys/capsicum/ |
| H A D | fcntl.cc | 90 // F_SETLK F_SETLK F_SETLK FLOCK set lock info 224 EXPECT_OK(fcntl(cap, F_SETLK, (long)&fl)); in TEST() 247 EXPECT_OK(fcntl(cap, F_SETLK, (long)&fl)); in TEST()
|
| /freebsd/tests/sys/fs/fusefs/ |
| H A D | locks.cc | 509 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 D | flush.cc | 265 ASSERT_NE(-1, fcntl(fd, F_SETLK, &fl)) << strerror(errno); in TEST_F()
|
| /freebsd/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_file.c | 46 if (fcntl(fd, F_SETLK, &lock) < 0) { in zed_file_lock() 73 if (fcntl(fd, F_SETLK, &lock) < 0) in zed_file_unlock()
|
| /freebsd/sys/sys/ |
| H A D | fcntl.h | 276 #define F_OSETLKW 9 /* F_SETLK; wait if blocked */ 280 #define F_SETLK 12 /* set record locking information */ macro 281 #define F_SETLKW 13 /* F_SETLK; wait if blocked */ 322 /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */
|
| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | lock_file.c | 96 assert(cmd == F_SETLKW || cmd == F_SETLK); in ofdlock() 143 lock_cmd = F_SETLK; in krb5_lock_file()
|
| /freebsd/contrib/openbsm/libbsm/ |
| H A D | bsm_fcntl.c | 53 { BSM_F_SETLK, F_SETLK }, 54 { BSM_F_SETLKW, F_SETLK },
|
| /freebsd/sys/security/audit/ |
| H A D | bsm_fcntl.c | 55 { BSM_F_SETLK, F_SETLK }, 56 { BSM_F_SETLKW, F_SETLK },
|
| /freebsd/contrib/netbsd-tests/fs/vfs/ |
| H A D | t_vnops.c | 768 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() 1042 ATF_TC_FSAPPLY(fcntl_lock, "check fcntl F_SETLK");
|
| /freebsd/lib/libsysdecode/ |
| H A D | sysdecode_fcntl_arg.3 | 71 .It Dv F_SETLK Ta Vt struct flock * Ta
|
| /freebsd/contrib/sendmail/libsmutil/ |
| H A D | lockfile.c | 55 action = F_SETLK;
|
| /freebsd/sys/nlm/ |
| H A D | nlm_advlock.c | 227 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/contrib/sendmail/contrib/ |
| H A D | mailprio | 272 eval 'sub F_SETLK {8;}' unless defined &F_SETLK; # nonblocking 293 X $ret = fcntl($FH, ($lock & &LOCK_NB) ? &F_SETLK : &F_SETLKW, $flock);
|
| H A D | qtool.pl | 374 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);
|
| /freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/ |
| H A D | fcntl.cpp | 98 case F_SETLK: { in fcntl()
|