Home
last modified time | relevance | path

Searched refs:LOCK_NB (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/flock/
Dflock06.c27 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()
Dflock03.c30 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()
Dflock04.c65 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()
Dflock02.c29 {&fd, LOCK_NB, EINVAL},
/third_party/toybox/toys/other/
Dflock.c33 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/
Dfcntlmodule.c303 #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/
Dflock.c50 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/
Dfile_lock.c68 if (flags & LOCK_NB) in file_lock()
140 if (flags & LOCK_NB) in record_lock()
/third_party/python/Lib/test/
Dtest_fcntl.py150 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.py505 lock_func(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
/third_party/ltp/testcases/kernel/fs/doio/include/
Dfile_lock.h41 #define LOCK_NB 0x0001 macro
/third_party/musl/ndk_musl_include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/musl/include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dtypes.rs534 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/
Dtypes.rs864 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/
Dfcntl.rs515 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/
Dfcntl.rst149 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/
Dfossilize_db.c190 err = flock(fd, LOCK_EX | LOCK_NB); in lock_file_with_timeout()
Ddisk_cache_os.c735 int err = flock(fd, LOCK_EX | LOCK_NB); in disk_cache_write_item_to_disk()
/third_party/rust/crates/libc/libc-test/semver/
Dunix.txt186 LOCK_NB
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
Dmod.rs539 pub const LOCK_NB: ::c_int = 4; constant
/third_party/rust/crates/libc/src/unix/redox/
Dmod.rs578 pub const LOCK_NB: ::c_int = 4; constant

123