Searched refs:F_LOCK (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/lib/libc/sys/
H A Dlockf.c55 case F_LOCK:
/freebsd-current/contrib/netbsd-tests/kernel/
H A Dt_lockf.c236 error = dolock(fd, F_LOCK, 0, 1);
242 error = dolock(fd, F_LOCK, 1, 1);
245 dolock(fd, F_LOCK, 0, 1); /* will block */
250 error = dolock(fd, F_LOCK, 1, 1);
/freebsd-current/tools/test/stress2/misc/
H A Dlockf3.sh114 if (lockf(fd, F_LOCK, 0) == -1)
130 if (lockf(fd, F_LOCK, 0) == -1)
H A Dfts2.sh91 if (lockf(fd, F_LOCK, 0) == -1)
92 err(1, "lockf(%s, F_LOCK)", file);
105 if (lockf(fd, F_LOCK, 0) == -1)
106 err(1, "lockf(%s, F_LOCK)", file);
H A Dnfs15.sh129 r = lockf(fd, F_LOCK, 0);
132 err(1, "lockf(%s, F_LOCK)", file);
H A Dnfs16.sh112 r = lockf(fd, F_LOCK, 0);
115 err(1, "lockf(%s, F_LOCK)", file);
H A Dlockf4.sh88 while (lockf(fd, F_LOCK, sizeof(v)) == -1) {
90 err(1, "lockf(%s, F_LOCK)", file);
H A Dcluster.sh105 while (lockf(fd, F_LOCK, ln) == -1) {
107 err(1, "lockf(%s, F_LOCK)", file);
H A Dnfs15lockd.sh156 r = lockf(fd, F_LOCK, 0);
159 err(1, "lockf(%s, F_LOCK)", file);
H A Dnfs15lockd3.sh162 r = lockf(fd, F_LOCK, 0);
165 err(1, "lockf(%s, F_LOCK)", file);
/freebsd-current/tools/test/stress2/testcases/lockf/
H A Dlockf.c53 r = lockf(fd, F_LOCK, 0);
56 err(1, "lockf(%s, F_LOCK)", file);
78 r = lockf(fd, F_LOCK, 0);
81 err(1, "lockf(%s, F_LOCK)", file);
/freebsd-current/tools/test/stress2/testcases/lockf2/
H A Dlockf2.c118 r = lockf(fd, F_LOCK, size);
121 err(1, "lockf(%s, F_LOCK)", file);
/freebsd-current/include/
H A Dunistd.h85 #define F_LOCK 1 /* lock a section for exclusive use */ macro
/freebsd-current/contrib/sendmail/mail.local/
H A Dmail.local.c111 # define LOCK_EX F_LOCK
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp152 # define F_LOCK 1 /* Lock a region for exclusive use. */ macro

Completed in 208 milliseconds