Home
last modified time | relevance | path

Searched refs:F_SETLKW (Results 1 – 25 of 79) 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/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.c142 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
148 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
242 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_r()
Dfcntl13.c78 if (fcntl(1, F_SETLKW, (void *)-1) != -1) { in main()
Dfcntl17.c233 if (fcntl(file_fd, F_SETLKW, &lock4) < 0) { in do_child2()
271 if (fcntl(file_fd, F_SETLKW, &lock5) < 0) { in do_child3()
/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/ltp/testcases/kernel/fs/doio/
Dfile_lock.c71 cmd = F_SETLKW; in file_lock()
143 cmd = F_SETLKW; in record_lock()
/external/python/cpython3/Modules/
Dfcntlmodule.c321 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock_impl()
420 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf_impl()
495 #ifdef F_SETLKW in all_ins()
496 if (PyModule_AddIntMacro(m, F_SETLKW)) return -1; in all_ins()
/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/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/libdaemon/libdaemon/
Ddpid.c83 if (fcntl(fd, F_SETLKW, &f) < 0) { in lock_file()
88 if (fcntl(fd, F_SETLKW, &f) >= 0) in lock_file()
/external/python/cpython3/Lib/test/
Dtest_fcntl.py70 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
81 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
/external/kernel-headers/original/uapi/asm-mips/asm/
Dfcntl.h42 #define F_SETLKW 7 macro
/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/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/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/kernel-headers/original/uapi/asm-generic/
Dfcntl.h108 #define F_SETLKW 7 macro
/external/compiler-rt/lib/profile/
DInstrProfilingUtil.c94 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofOpenFileEx()
DCMakeLists.txt35 fcntl(fd, F_SETLKW, &s_flock);
/external/syzkaller/sys/netbsd/
Dsys_amd64.const23 F_SETLKW = 9
/external/syzkaller/sys/freebsd/
Dsys_amd64.const21 F_SETLKW = 13

1234