Home
last modified time | relevance | path

Searched refs:F_SETLKW (Results 1 – 25 of 27) sorted by relevance

12

/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/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp41 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock()
49 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock()
/freebsd/tests/sys/file/
H A Dflock_helper.c303 res = fcntl(fd, F_SETLKW, &fl); in test3()
440 if (fcntl(fd, F_SETLKW, &fl) < 0) in test5()
460 res = fcntl(fd, F_SETLKW, &fl); in test5()
543 if (fcntl(fd, F_SETLKW, &fl) < 0) in test6()
564 res = fcntl(fd, F_SETLKW, &fl); in test6()
1022 res = fcntl(fd, F_SETLKW, &fl); in test12()
1110 res = fcntl(fd, F_SETLKW, &fl); in test13()
1203 if (fcntl(fd, F_SETLKW, &fl) < 0) { in test14()
1424 error = fcntl(tc->tc_fd, F_SETLKW, &tc->tc_fl); in test16_func()
H A Dpath_test.c835 ATF_REQUIRE_ERRNO(EBADF, fcntl(pathfd, F_SETLKW, &flk) == -1); in ATF_TC_BODY()
838 ATF_REQUIRE_ERRNO(EBADF, fcntl(pathfd, F_SETLKW, &flk) == -1); in ATF_TC_BODY()
/freebsd/contrib/sendmail/libsmutil/
H A Dlockfile.c57 action = F_SETLKW;
/freebsd/lib/libc/sys/
H A Dlockf.c56 cmd = F_SETLKW; in lockf()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c146 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofLockFd()
171 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofUnlockFd()
/freebsd/crypto/heimdal/lib/roken/
H A Dflock.c57 cmd = F_SETLKW; /* Blocking */ in rk_flock()
/freebsd/sys/sys/
H A Dfcntl.h256 #define F_SETLKW 13 /* F_SETLK; wait if blocked */ macro
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_lockf.c102 (void)fcntl(fd, F_SETLKW, &fl); in trylocks()
/freebsd/usr.bin/at/
H A Dat.c260 fcntl(lockdes, F_SETLKW, &lock); in writefile()
309 fcntl(lockdes, F_SETLKW, &lock); in writefile()
/freebsd/tools/test/stress2/misc/
H A Dnullfs22.sh115 while (fcntl(fd, F_SETLKW, &fl) < 0) {
/freebsd/contrib/sendmail/libsmdb/
H A Dsmdb.c101 action = F_SETLKW;
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc698 ASSERT_NE(-1, fcntl(fd, F_SETLKW, &fl)) << strerror(errno); in TEST_F()
728 ASSERT_NE(-1, fcntl(fd, F_SETLKW, &fl)) << strerror(errno); in TEST_F()
/freebsd/bin/cat/
H A Dcat.c201 if (fcntl(STDOUT_FILENO, F_SETLKW, &stdout_lock) != 0) in main()
/freebsd/contrib/sendmail/contrib/
H A Dmailprio273 eval 'sub F_SETLKW {9;}' unless defined &F_SETLKW; # lockwait
293 X $ret = fcntl($FH, ($lock & &LOCK_NB) ? &F_SETLK : &F_SETLKW, $flock);
/freebsd/crypto/heimdal/lib/krb5/
H A Dfcache.c83 ret = fcntl(fd, F_SETLKW, &l); in _krb5_xlock()
125 ret = fcntl(fd, F_SETLKW, &l); in _krb5_xunlock()
/freebsd/lib/libthr/thread/
H A Dthr_syscalls.c197 if (cmd == F_OSETLKW || cmd == F_SETLKW) { in __thr_fcntl()
/freebsd/usr.bin/xinstall/
H A Dxinstall.c1415 if (fcntl(fileno(metafp), F_SETLKW, &metalog_lock) == -1) { in metadata_log()
1473 if (fcntl(fileno(metafp), F_SETLKW, &metalog_lock) == -1) in metadata_log()
/freebsd/sys/compat/linux/
H A Dlinux_file.c1402 return (kern_fcntl(td, args->fd, F_SETLKW, in fcntl_common()
1509 return (kern_fcntl(td, args->fd, F_SETLKW, in linux_fcntl64()
/freebsd/lib/libsysdecode/
H A Dflags.c904 case F_SETLKW: in sysdecode_fcntl_arg()
/freebsd/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c167 if (fcntl(kvp_pools[pool].pool_fd, F_SETLKW, &fl) == -1) { in kvp_acquire_lock()
/freebsd/sys/kern/
H A Dkern_descrip.c446 newcmd = F_SETLKW; in kern_fcntl_freebsd()
453 case F_SETLKW: in kern_fcntl_freebsd()
620 case F_SETLKW: in kern_fcntl()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc1253 if (::fcntl(FD, F_SETLKW, &Lock) != -1)
/freebsd/contrib/sendmail/src/
H A Dconf.c3633 action = F_SETLKW;

12