Home
last modified time | relevance | path

Searched refs:LOCK_EX (Results 1 - 25 of 55) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/flock/
H A 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()
H A Dflock03.c11 * Fork a child processes The parent flocks a file with LOCK_EX Child waits
14 * lock the file with LOCK_EX. The test passes if the child is able to lock
30 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()
H A Dflock04.c7 * combinations along with LOCK_SH and LOCK_EX:
25 {LOCK_EX, "exclusive lock"},
71 child(LOCK_EX | LOCK_NB, 0, "exclusive lock"); in verify_flock()
H A Dflock01.c22 {LOCK_EX, "Exclusive Lock"},
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
30 {&fd, LOCK_SH | LOCK_EX, EINVAL},
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dflock.c58 * @tc.desc : Each parameter is valid, the op parameter is LOCK_EX, which can lock the file
68 result = flock(fd, LOCK_EX); in flock_0300()
76 * @tc.desc : Each parameter is valid, the op parameter is LOCK_EX|LOCK_NB, which can lock the file
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/
H A Dfcntlmodule.c302 #define LOCK_EX 2 /* exclusive lock */ in fcntl_flock_impl() macro
312 else if (code & LOCK_EX) in fcntl_flock_impl()
351 LOCK_EX - acquire an exclusive lock
353 When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
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/
H A Dfile_lock.c79 else if (flags & LOCK_EX) in file_lock()
151 else if (flags & LOCK_EX) in record_lock()
H A 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/
H A Dfile_lock.h43 #define LOCK_EX 0x0004 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dfile.h8 #define LOCK_EX 2 macro
/third_party/musl/include/sys/
H A Dfile.h8 #define LOCK_EX 2 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/python/Lib/test/
H A Dtest_fcntl.py152 fcntl.flock(fileno, fcntl.LOCK_EX)
161 cmd = fcntl.LOCK_EX | fcntl.LOCK_NB
H A D_test_eintr.py494 " fcntl.%s(f, fcntl.LOCK_EX)" % lock_name,
505 lock_func(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
513 lock_func(f, fcntl.LOCK_EX)
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dtypes.rs529 /// `LOCK_EX`
530 LockExclusive = linux_raw_sys::general::LOCK_EX,
535 /// `LOCK_EX | LOCK_NB`
536 NonBlockingLockExclusive = linux_raw_sys::general::LOCK_EX | linux_raw_sys::general::LOCK_NB,
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dtypes.rs859 /// `LOCK_EX`
860 LockExclusive = c::LOCK_EX,
865 /// `LOCK_EX | LOCK_NB`
866 NonBlockingLockExclusive = c::LOCK_EX | c::LOCK_NB,
/third_party/mesa3d/src/util/
H A Dfossilize_db.c190 err = flock(fd, LOCK_EX | LOCK_NB); in lock_file_with_timeout()
H A Ddisk_cache_os.c735 int err = flock(fd, LOCK_EX | LOCK_NB); in disk_cache_write_item_to_disk()
/third_party/mksh/
H A Dhistrap.c1593 (void)flock(fd, LOCK_EX); in mksh_lockfd()
1599 rv = flock(fd, LOCK_EX); in mksh_lockfd()
/third_party/node/tools/gyp/pylib/gyp/
H A Dmac_tool.py257 fcntl.flock(fd, fcntl.LOCK_EX)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dmac_tool.py257 fcntl.flock(fd, fcntl.LOCK_EX)
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
H A Dmod.rs538 pub const LOCK_EX: ::c_int = 2; consts

Completed in 18 milliseconds

123