Home
last modified time | relevance | path

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

/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/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/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/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/ltp/testcases/kernel/fs/doio/include/
Dfile_lock.h41 #define LOCK_NB 0x0001 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/musl/include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/third_party/musl/ndk_musl_include/sys/
Dfile.h9 #define LOCK_NB 4 macro
/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/boost/boost/interprocess/detail/
Dos_file_functions.hpp595 int ret = ::flock(hnd, LOCK_EX | LOCK_NB);
608 int ret = ::flock(hnd, LOCK_SH | 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.c696 int err = flock(fd, LOCK_EX | LOCK_NB); in disk_cache_write_item_to_disk()
/third_party/eudev/src/udev/
Dudevd.c327 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) { in worker_spawn()
809 r = flock(fd, LOCK_EX|LOCK_NB); in synthesize_change()
/third_party/iptables/iptables/
Dxshared.c279 if (flock(fd, LOCK_EX | LOCK_NB) == 0) in xtables_lock()
/third_party/wayland_standard/src/
Dwayland-server.c1448 if (flock(socket->fd_lock, LOCK_EX | LOCK_NB) < 0) { in wl_socket_lock()
/third_party/python/Lib/
Dmailbox.py2069 fcntl.lockf(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
/third_party/sqlite/src/
Dsqlite3.c36769 int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB);
36847 if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) {