Home
last modified time | relevance | path

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

12

/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.c25 {LOCK_EX, "exclusive lock"},
71 child(LOCK_EX | LOCK_NB, 0, "exclusive lock"); in verify_flock()
Dflock01.c22 {LOCK_EX, "Exclusive Lock"},
Dflock02.c30 {&fd, LOCK_SH | LOCK_EX, EINVAL},
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dflock.c68 result = flock(fd, LOCK_EX); in flock_0300()
86 result = flock(fd, LOCK_EX | LOCK_NB); in flock_0400()
117 int result = flock(-1, LOCK_EX); in flock_0600()
/third_party/python/Modules/
Dfcntlmodule.c302 #define LOCK_EX 2 /* exclusive lock */ in fcntl_flock_impl() macro
312 else if (code & LOCK_EX) in fcntl_flock_impl()
383 #define LOCK_EX 2 /* exclusive lock */ in fcntl_lockf_impl() macro
393 else if (code & LOCK_EX) in fcntl_lockf_impl()
460 if (PyModule_AddIntMacro(m, LOCK_EX)) return -1; in all_ins()
/third_party/ltp/testcases/kernel/fs/doio/
Dfile_lock.c79 else if (flags & LOCK_EX) in file_lock()
151 else if (flags & LOCK_EX) in record_lock()
Dgrowfiles.c1461 lkfile(fd, LOCK_EX, LKLVL1); /* lock if lockfile is LKLVL1 */ in main()
2039 lkfile(fd, LOCK_EX, LKLVL0); /* get exclusive lock */ in growfile()
2079 lkfile(fd, LOCK_EX, LKLVL0); /* get exclusive lock */ in growfile()
2192 lkfile(fd, LOCK_EX, LKLVL0); /* get exclusive lock */ in growfile()
2383 lkfile(fd, LOCK_EX, LKLVL0); in shrinkfile()
2965 case LOCK_EX: in lkfile()
3003 case LOCK_EX: in lkfile()
/third_party/ltp/testcases/kernel/fs/doio/include/
Dfile_lock.h43 #define LOCK_EX 0x0004 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/include/sys/
Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/ndk_musl_include/sys/
Dfile.h8 #define LOCK_EX 2 macro
/third_party/toybox/toys/other/
Dflock.c31 else op = (toys.optflags & FLAG_s) ? LOCK_SH : LOCK_EX; in flock_main()
/third_party/python/Lib/test/
Dtest_fcntl.py152 fcntl.flock(fileno, fcntl.LOCK_EX)
161 cmd = fcntl.LOCK_EX | fcntl.LOCK_NB
D_test_eintr.py505 lock_func(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
513 lock_func(f, fcntl.LOCK_EX)
/third_party/python/Doc/library/
Dfcntl.rst146 * :const:`LOCK_EX` -- acquire an exclusive lock
148 When *cmd* is :const:`LOCK_SH` or :const:`LOCK_EX`, it can also be
154 systems, :const:`LOCK_EX` can only be used if the file descriptor refers to a
/third_party/boost/boost/interprocess/detail/
Dos_file_functions.hpp591 { return 0 == ::flock(hnd, LOCK_EX); }
595 int ret = ::flock(hnd, LOCK_EX | LOCK_NB);
/third_party/weston/tests/
Dweston-test-fixture-compositor.c144 if (flock(fd, LOCK_EX) == -1) { in wait_for_lock()
/third_party/iptables/iptables/
Dxshared.c270 if (flock(fd, LOCK_EX) == 0) in xtables_lock()
279 if (flock(fd, LOCK_EX | LOCK_NB) == 0) in xtables_lock()
/third_party/mindspore/mindspore/
Dlog.py85 fcntl.lockf(file_pointer.fileno(), fcntl.LOCK_EX)
/third_party/mesa3d/src/util/
Dfossilize_db.c190 err = flock(fd, LOCK_EX | LOCK_NB); in lock_file_with_timeout()
/third_party/mksh/
Dhistrap.c1593 (void)flock(fd, LOCK_EX); in mksh_lockfd()
1599 rv = flock(fd, LOCK_EX); in mksh_lockfd()

12