Home
last modified time | relevance | path

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

1234

/external/strace/xlat/
Dfcntlcmds.h74 #if defined(F_SETLKW) || (defined(HAVE_DECL_F_SETLKW) && HAVE_DECL_F_SETLKW)
76 static_assert((F_SETLKW) == (9), "F_SETLKW != 9");
79 # define F_SETLKW 9
89 #if defined(F_SETLKW) || (defined(HAVE_DECL_F_SETLKW) && HAVE_DECL_F_SETLKW)
91 static_assert((F_SETLKW) == (7), "F_SETLKW != 7");
94 # define F_SETLKW 7
415 XLAT(F_SETLKW),
418 XLAT(F_SETLKW),
Dfcntlcmds.in18 F_SETLKW 9
21 F_SETLKW 7
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLKW)
19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLKW)
21 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLKW)
/external/openssh/openbsd-compat/
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()
/external/llvm-project/lldb/source/Host/posix/
DLockFilePosix.cpp45 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock()
53 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl10.c159 TEST(fcntl(fd, F_SETLKW, &flocks)); in main()
178 TEST(fcntl(fd, F_SETLKW, &flocks)); in main()
Dfcntl36.c127 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
133 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
227 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_r()
Dfcntl13.c78 if (fcntl(1, F_SETLKW, (void *)-1) != -1) { in main()
/external/mtools/
Dlockdev.c53 # if (defined ALRM && defined F_SETLKW)
116 ret = fcntl(fd, F_SETLKW, &flk); in lock_dev()
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c71 cmd = F_SETLKW; in file_lock()
143 cmd = F_SETLKW; in record_lock()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c386 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) { in tdb_brlock_upgrade()
479 ret = _tdb_lock(tdb, list, ltype, F_SETLKW); in tdb_lock()
553 F_SETLKW, 0, 1); in tdb_unlock()
590 F_SETLKW, 0, 1) == -1) { in tdb_transaction_lock()
608 ret = tdb->methods->tdb_brlock(tdb, TRANSACTION_LOCK, F_UNLCK, F_SETLKW, 0, 1); in tdb_transaction_unlock()
647 if (op == F_SETLKW) { in _tdb_lockall()
683 tdb->methods->tdb_brlock(tdb, FREELIST_TOP, F_UNLCK, F_SETLKW, in _tdb_unlockall()
698 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW); in tdb_lockall()
704 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW); in tdb_lockall_mark()
728 return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); in tdb_lockall_read()
[all …]
/external/python/cpython2/Modules/
Dfcntlmodule.c288 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock()
369 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf()
480 #ifdef F_SETLKW in all_ins()
481 if (ins(d, "F_SETLKW", (long)F_SETLKW)) return -1; in all_ins()
/external/python/cpython3/Modules/
Dfcntlmodule.c334 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock_impl()
438 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf_impl()
513 #ifdef F_SETLKW in all_ins()
514 if (PyModule_AddIntMacro(m, F_SETLKW)) return -1; in all_ins()
/external/python/cpython2/Lib/test/
Dtest_fcntl.py77 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
87 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
/external/vboot_reference/futility/
Dfutility.c78 if (fcntl(log_fd, F_SETLKW, &lock)) in log_close()
116 ret = fcntl(log_fd, F_SETLKW, &lock); /* this blocks */ in log_open()
/external/llvm-project/compiler-rt/lib/profile/
DInstrProfilingUtil.c135 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofLockFd()
160 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofUnlockFd()
/external/rust/crates/libc/src/unix/linux_like/linux/gnu/b32/
Dmod.rs167 pub const F_SETLKW: ::c_int = 9; constant
213 pub const F_SETLKW: ::c_int = 7; constant
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h108 #define F_SETLKW 7 macro
/external/strace/tests-mx32/
Dfcntl-common.c109 TEST_FLOCK_EINVAL(F_SETLKW); in test_flock()
128 invoke_test_syscall(0, F_SETLKW, fl); in test_flock()
/external/strace/tests/
Dfcntl-common.c109 TEST_FLOCK_EINVAL(F_SETLKW); in test_flock()
128 invoke_test_syscall(0, F_SETLKW, fl); in test_flock()
/external/ltp/pan/
Dzoolib.c320 ret = fcntl(fileno(fp), F_SETLKW, &zlock); in zoo_lock()
356 ret = fcntl(fileno(fp), F_SETLKW, &zlock); in zoo_unlock()
/external/strace/tests-m32/
Dfcntl-common.c109 TEST_FLOCK_EINVAL(F_SETLKW); in test_flock()
128 invoke_test_syscall(0, F_SETLKW, fl); in test_flock()
/external/python/cpython3/Lib/test/
Dtest_fcntl.py85 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
96 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
/external/compiler-rt/lib/profile/
DInstrProfilingUtil.c94 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofOpenFileEx()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate04.c123 SAFE_FCNTL(fd, F_SETLKW, &flocks); in dochild()

1234