Home
last modified time | relevance | path

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

12

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlock.py9 LOCK_SH = None # Shared lock variable
22 LOCK_SH = 0 # the default variable
28 LOCK_SH = fcntl.LOCK_SH variable
55 LOCK_EX, LOCK_SH, LOCK_NB, LOCK_EX | LOCK_NB, LOCK_SH | LOCK_NB)
Dlock_unittest.py29 lock.AcquireFileLock(f, lock.LOCK_SH)
84 lock.AcquireFileLock(f, lock.LOCK_SH)
127 lock.AcquireFileLock(f, lock.LOCK_SH)
/external/strace/xlat/
Dflockcmds.h2 #if !(defined(LOCK_SH) || (defined(HAVE_DECL_LOCK_SH) && HAVE_DECL_LOCK_SH))
3 # define LOCK_SH 1 macro
35 XLAT(LOCK_SH),
Dflockcmds.in1 LOCK_SH 1
/external/python/cpython3/Lib/test/
Dtest_fcntl.py131 fcntl.flock(fileno, fcntl.LOCK_SH)
133 fcntl.flock(self.f, fcntl.LOCK_SH | fcntl.LOCK_NB)
138 self.assertRaises(ValueError, fcntl.flock, -1, fcntl.LOCK_SH)
139 self.assertRaises(TypeError, fcntl.flock, 'spam', fcntl.LOCK_SH)
145 fcntl.LOCK_SH)
/external/python/cpython2/Modules/
Dfcntlmodule.c267 #ifndef LOCK_SH in fcntl_flock()
268 #define LOCK_SH 1 /* shared lock */ in fcntl_flock()
277 else if (code & LOCK_SH) in fcntl_flock()
325 #ifndef LOCK_SH in fcntl_lockf()
326 #define LOCK_SH 1 /* shared lock */ in fcntl_lockf() macro
335 else if (code & LOCK_SH) in fcntl_lockf()
441 if (ins(d, "LOCK_SH", (long)LOCK_SH)) return -1; in all_ins()
/external/python/cpython3/Modules/
Dfcntlmodule.c293 #ifndef LOCK_SH in fcntl_flock_impl()
294 #define LOCK_SH 1 /* shared lock */ in fcntl_flock_impl()
303 else if (code & LOCK_SH) in fcntl_flock_impl()
367 #ifndef LOCK_SH in fcntl_lockf_impl()
368 #define LOCK_SH 1 /* shared lock */ in fcntl_lockf_impl() macro
377 else if (code & LOCK_SH) in fcntl_lockf_impl()
444 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
/external/ltp/testcases/kernel/syscalls/flock/
Dflock02.c103 TEST(flock(-1, LOCK_SH)); in main()
123 TEST(flock(fd, LOCK_SH | LOCK_EX)); in main()
Dflock04.c102 TEST(flock(fd, LOCK_SH)); in main()
111 retval = flock(fd1, LOCK_SH | LOCK_NB); in main()
Dflock01.c88 { LOCK_SH, "Shared Lock" },
Dflock05.c112 retval = flock(fd1, LOCK_SH | LOCK_NB); in main()
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c81 else if (flags & LOCK_SH) in file_lock()
153 else if (flags & LOCK_SH) in record_lock()
/external/ltp/testcases/kernel/fs/doio/include/
Dfile_lock.h44 #define LOCK_SH 0x0008 macro
/external/strace/tests-m32/
Dflock.c15 long rc = syscall(__NR_flock, fd, LOCK_SH); in main()
/external/strace/tests/
Dflock.c15 long rc = syscall(__NR_flock, fd, LOCK_SH); in main()
/external/strace/tests-mx32/
Dflock.c15 long rc = syscall(__NR_flock, fd, LOCK_SH); in main()
/external/toybox/toys/other/
Dflock.c31 else op = (toys.optflags & FLAG_s) ? LOCK_SH : LOCK_EX; in flock_main()
/external/compiler-rt/lib/profile/
DWindowsMMap.h43 #define LOCK_SH 1 /* shared lock */ macro
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h178 #define LOCK_SH 1 /* shared lock */ macro
/external/autotest/client/cros/power/
Dsys_power.py155 fcntl.flock(pause_ethernet_fd, fcntl.LOCK_SH)
/external/minijail/linux-x86/
Dlibconstants.gen.c677 #ifdef LOCK_SH
678 { "LOCK_SH", (unsigned long) LOCK_SH },
/external/python/cpython2/Lib/plat-irix5/
DFILE.py232 LOCK_SH = 1 variable
/external/toolchain-utils/binary_search_tool/
Dbisect_driver.py63 lock_type = fcntl.LOCK_SH
/external/python/cpython3/Doc/library/
Dfcntl.rst123 * :const:`LOCK_SH` -- acquire a shared lock
126 When *cmd* is :const:`LOCK_SH` or :const:`LOCK_EX`, it can also be
/external/python/cpython2/Doc/library/
Dfcntl.rst120 * :const:`LOCK_SH` -- acquire a shared lock
123 When *operation* is :const:`LOCK_SH` or :const:`LOCK_EX`, it can also be

12