/third_party/ltp/testcases/kernel/syscalls/flock/ |
D | flock06.c | 27 TEST(flock(fd1, LOCK_EX | LOCK_NB)); in verify_flock() 34 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in verify_flock() 46 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in verify_flock()
|
D | flock03.c | 30 if (flock(fd2, LOCK_EX | LOCK_NB) != -1) in childfunc() 42 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in childfunc() 68 TEST(flock(fd1, LOCK_EX | LOCK_NB)); in verify_flock()
|
D | flock04.c | 65 child(LOCK_SH | LOCK_NB, tc->operation & LOCK_SH, "shared lock"); in verify_flock() 71 child(LOCK_EX | LOCK_NB, 0, "exclusive lock"); in verify_flock()
|
D | flock02.c | 29 {&fd, LOCK_NB, EINVAL},
|
/third_party/toybox/toys/other/ |
D | flock.c | 33 if (toys.optflags & FLAG_n) op |= LOCK_NB; in flock_main() 36 if ((op & LOCK_NB) && errno == EAGAIN) toys.exitval = 1; in flock_main()
|
/third_party/python/Modules/ |
D | fcntlmodule.c | 303 #define LOCK_NB 4 /* don't block when locking */ in fcntl_flock_impl() macro 322 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock_impl() 384 #define LOCK_NB 4 /* don't block when locking */ in fcntl_lockf_impl() macro 426 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf_impl() 461 if (PyModule_AddIntMacro(m, LOCK_NB)) return -1; in all_ins()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | flock.c | 50 result = flock(fd, LOCK_SH | LOCK_NB); in flock_0200() 86 result = flock(fd, LOCK_EX | LOCK_NB); in flock_0400()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | file_lock.c | 68 if (flags & LOCK_NB) in file_lock() 140 if (flags & LOCK_NB) in record_lock()
|
/third_party/python/Lib/test/ |
D | test_fcntl.py | 150 fcntl.flock(self.f, fcntl.LOCK_SH | fcntl.LOCK_NB) 161 cmd = fcntl.LOCK_EX | fcntl.LOCK_NB 172 cmd = fcntl.LOCK_SH | fcntl.LOCK_NB
|
D | _test_eintr.py | 505 lock_func(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
/third_party/ltp/testcases/kernel/fs/doio/include/ |
D | file_lock.h | 41 #define LOCK_NB 0x0001 macro
|
/third_party/musl/ndk_musl_include/sys/ |
D | file.h | 9 #define LOCK_NB 4 macro
|
/third_party/musl/include/sys/ |
D | file.h | 9 #define LOCK_NB 4 macro
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | file.h | 9 #define LOCK_NB 4 macro
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | file.h | 9 #define LOCK_NB 4 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | file.h | 9 #define LOCK_NB 4 macro
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
D | types.rs | 534 NonBlockingLockShared = linux_raw_sys::general::LOCK_SH | linux_raw_sys::general::LOCK_NB, 536 NonBlockingLockExclusive = linux_raw_sys::general::LOCK_EX | linux_raw_sys::general::LOCK_NB, 538 NonBlockingUnlock = linux_raw_sys::general::LOCK_UN | linux_raw_sys::general::LOCK_NB,
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
D | types.rs | 864 NonBlockingLockShared = c::LOCK_SH | c::LOCK_NB, 866 NonBlockingLockExclusive = c::LOCK_EX | c::LOCK_NB, 868 NonBlockingUnlock = c::LOCK_UN | c::LOCK_NB,
|
/third_party/rust/crates/nix/src/ |
D | fcntl.rs | 515 LockSharedNonblock => libc::flock(fd, libc::LOCK_SH | libc::LOCK_NB), 516 LockExclusiveNonblock => libc::flock(fd, libc::LOCK_EX | libc::LOCK_NB), 517 UnlockNonblock => libc::flock(fd, libc::LOCK_UN | libc::LOCK_NB),
|
/third_party/python/Doc/library/ |
D | fcntl.rst | 149 bitwise ORed with :const:`LOCK_NB` to avoid blocking on lock acquisition. 150 If :const:`LOCK_NB` is used and the lock cannot be acquired, an
|
/third_party/mesa3d/src/util/ |
D | fossilize_db.c | 190 err = flock(fd, LOCK_EX | LOCK_NB); in lock_file_with_timeout()
|
D | disk_cache_os.c | 735 int err = flock(fd, LOCK_EX | LOCK_NB); in disk_cache_write_item_to_disk()
|
/third_party/rust/crates/libc/libc-test/semver/ |
D | unix.txt | 186 LOCK_NB
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/ |
D | mod.rs | 539 pub const LOCK_NB: ::c_int = 4; constant
|
/third_party/rust/crates/libc/src/unix/redox/ |
D | mod.rs | 578 pub const LOCK_NB: ::c_int = 4; constant
|