/third_party/ltp/testcases/kernel/syscalls/flock/ |
H A D | flock04.c | 7 * 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 D | flock02.c | 10 * 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 D | flock01.c | 20 {LOCK_SH, "Shared Lock" },
|
/third_party/python/Lib/test/ |
H A D | test_fcntl.py | 148 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 D | fcntlmodule.c | 300 #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 D | flock.c | 22 * @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 D | file_lock.c | 81 else if (flags & LOCK_SH) in file_lock() 153 else if (flags & LOCK_SH) in record_lock()
|
H A D | growfiles.c | 2524 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 D | file_lock.h | 44 #define LOCK_SH 0x0008 macro
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | file.h | 7 #define LOCK_SH 1 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | file.h | 7 #define LOCK_SH 1 macro
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | file.h | 7 #define LOCK_SH 1 macro
|
/third_party/musl/include/sys/ |
H A D | file.h | 7 #define LOCK_SH 1 macro
|
/third_party/toybox/toys/other/ |
H A D | flock.c | 31 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 D | types.rs | 527 /// `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 D | types.rs | 857 /// `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 D | mod.rs | 537 pub const LOCK_SH: ::c_int = 1; consts
|
/third_party/eudev/src/udev/ |
H A D | udevd.c | 327 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 D | mod.rs | 576 pub const LOCK_SH: ::c_int = 1; consts
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/ |
H A D | mod.rs | 1022 pub const LOCK_SH: ::c_int = 1; consts
|
/third_party/rust/crates/libc/src/unix/linux_like/ |
H A D | mod.rs | 1036 pub const LOCK_SH: ::c_int = 1; consts
|
/third_party/rust/crates/libc/src/unix/haiku/ |
H A D | mod.rs | 1059 pub const LOCK_SH: ::c_int = 0x01; consts
|
/third_party/libfuse/lib/ |
H A D | fuse_lowlevel.c | 1682 op = LOCK_SH;
|
/third_party/rust/crates/libc/src/unix/nto/ |
H A D | mod.rs | 1171 pub const LOCK_SH: ::c_int = 0x1; consts
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | mod.rs | 1918 pub const LOCK_SH: ::c_int = 1; consts
|