Home
last modified time | relevance | path

Searched refs:LOCK_SH (Results 1 - 25 of 42) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/flock/
H A Dflock04.c7 * combinations along with LOCK_SH and LOCK_EX:
24 {LOCK_SH, "shared lock"},
65 child(LOCK_SH | LOCK_NB, tc->operation & LOCK_SH, "shared lock"); in verify_flock()
H A Dflock02.c10 * operation does not include LOCK_SH,LOCK_EX,LOCK_UN.
12 * combination of locking modes is used i.e LOCK_SH with LOCK_EX
28 {&badfd, LOCK_SH, EBADF},
30 {&fd, LOCK_SH | LOCK_EX, EINVAL},
H A Dflock01.c20 {LOCK_SH, "Shared Lock" },
/third_party/python/Lib/test/
H A 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/
H A 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()
350 LOCK_SH - acquire a shared lock
353 When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
381 #ifndef LOCK_SH in fcntl_lockf_impl()
382 #define LOCK_SH 1 /* shared lock */ in fcntl_lockf_impl() macro
386 #endif /* LOCK_SH */ in fcntl_lockf_impl()
391 else if (code & LOCK_SH) in fcntl_lockf_impl()
459 if (PyModule_AddIntMacro(m, LOCK_SH)) retur in all_ins()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dflock.c22 * @tc.desc : Each parameter is valid, the op parameter is LOCK_SH, which can lock the file
32 result = flock(fd, LOCK_SH); in flock_0100()
40 * @tc.desc : Each parameter is valid, the op parameter is LOCK_SH|LOCK_NB, which can lock the file
50 result = flock(fd, LOCK_SH | LOCK_NB); in flock_0200()
/third_party/ltp/testcases/kernel/fs/doio/
H A Dfile_lock.c81 else if (flags & LOCK_SH) in file_lock()
153 else if (flags & LOCK_SH) in record_lock()
H A 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/
H A Dfile_lock.h44 #define LOCK_SH 0x0008 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dfile.h7 #define LOCK_SH 1 macro
/third_party/musl/include/sys/
H A Dfile.h7 #define LOCK_SH 1 macro
/third_party/toybox/toys/other/
H A Dflock.c31 else op = (toys.optflags & FLAG_s) ? LOCK_SH : LOCK_EX; in flock_main()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dtypes.rs527 /// `LOCK_SH`
528 LockShared = linux_raw_sys::general::LOCK_SH,
533 /// `LOCK_SH | LOCK_NB`
534 NonBlockingLockShared = linux_raw_sys::general::LOCK_SH | linux_raw_sys::general::LOCK_NB,
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dtypes.rs857 /// `LOCK_SH`
858 LockShared = c::LOCK_SH,
863 /// `LOCK_SH | LOCK_NB`
864 NonBlockingLockShared = c::LOCK_SH | c::LOCK_NB,
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
H A Dmod.rs537 pub const LOCK_SH: ::c_int = 1; consts
/third_party/eudev/src/udev/
H A Dudevd.c327 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) { in worker_spawn()
/third_party/rust/crates/libc/src/unix/redox/
H A Dmod.rs576 pub const LOCK_SH: ::c_int = 1; consts
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/
H A Dmod.rs1022 pub const LOCK_SH: ::c_int = 1; consts
/third_party/rust/crates/libc/src/unix/linux_like/
H A Dmod.rs1036 pub const LOCK_SH: ::c_int = 1; consts
/third_party/rust/crates/libc/src/unix/haiku/
H A Dmod.rs1059 pub const LOCK_SH: ::c_int = 0x01; consts
/third_party/libfuse/lib/
H A Dfuse_lowlevel.c1682 op = LOCK_SH;
/third_party/rust/crates/libc/src/unix/nto/
H A Dmod.rs1171 pub const LOCK_SH: ::c_int = 0x1; consts
/third_party/rust/crates/libc/src/unix/solarish/
H A Dmod.rs1918 pub const LOCK_SH: ::c_int = 1; consts

Completed in 53 milliseconds

12