Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/flock/
Dflock04.c24 {LOCK_SH, "shared lock"},
65 child(LOCK_SH | LOCK_NB, tc->operation & LOCK_SH, "shared lock"); in verify_flock()
Dflock02.c28 {&badfd, LOCK_SH, EBADF},
30 {&fd, LOCK_SH | LOCK_EX, EINVAL},
Dflock01.c20 {LOCK_SH, "Shared Lock" },
/third_party/python/Lib/test/
Dtest_fcntl.py148 fcntl.flock(fileno, fcntl.LOCK_SH)
150 fcntl.flock(self.f, fcntl.LOCK_SH | fcntl.LOCK_NB)
155 self.assertRaises(ValueError, fcntl.flock, -1, fcntl.LOCK_SH)
156 self.assertRaises(TypeError, fcntl.flock, 'spam', fcntl.LOCK_SH)
172 cmd = fcntl.LOCK_SH | fcntl.LOCK_NB
184 fcntl.LOCK_SH)
/third_party/python/Modules/
Dfcntlmodule.c300 #ifndef LOCK_SH in fcntl_flock_impl()
301 #define LOCK_SH 1 /* shared lock */ in fcntl_flock_impl() macro
310 else if (code & LOCK_SH) in fcntl_flock_impl()
381 #ifndef LOCK_SH in fcntl_lockf_impl()
382 #define LOCK_SH 1 /* shared lock */ in fcntl_lockf_impl() macro
391 else if (code & LOCK_SH) in fcntl_lockf_impl()
459 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dflock.c32 result = flock(fd, LOCK_SH); in flock_0100()
50 result = flock(fd, LOCK_SH | LOCK_NB); in flock_0200()
/third_party/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()
Dgrowfiles.c2524 lkfile(fd, LOCK_SH, LKLVL0); in check_write()
2732 lkfile(fd, LOCK_SH, LKLVL0); in check_file()
2768 lkfile(fd, LOCK_SH, LKLVL0); /* get lock on file before getting file size */ in check_file()
2959 case LOCK_SH: in lkfile()
2997 case LOCK_SH: in lkfile()
/third_party/ltp/testcases/kernel/fs/doio/include/
Dfile_lock.h44 #define LOCK_SH 0x0008 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/include/sys/
Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/ndk_musl_include/sys/
Dfile.h7 #define LOCK_SH 1 macro
/third_party/toybox/toys/other/
Dflock.c31 else op = (toys.optflags & FLAG_s) ? LOCK_SH : LOCK_EX; in flock_main()
/third_party/boost/boost/interprocess/detail/
Dos_file_functions.hpp604 { return 0 == ::flock(hnd, LOCK_SH); }
608 int ret = ::flock(hnd, LOCK_SH | LOCK_NB);
/third_party/python/Doc/library/
Dfcntl.rst145 * :const:`LOCK_SH` -- acquire a shared lock
148 When *cmd* is :const:`LOCK_SH` or :const:`LOCK_EX`, it can also be
/third_party/eudev/src/udev/
Dudevd.c327 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) { in worker_spawn()