/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl16.c | 58 #if (SKIPVAL == F_RDLCK) || (SKIPVAL == F_WRLCK) 59 #error invalid SKIP, must not be F_RDLCK or F_WRLCK 83 {F_RDLCK, 0, 0L, 5L, NOBLOCK}, 85 {F_RDLCK, 0, 6L, 5L, NOBLOCK}, 89 {F_RDLCK, 0, 0L, 0L, IGNORED}, 98 {F_RDLCK, 0, 0L, 5L, WILLBLOCK}, 100 {F_RDLCK, 0, 6L, 5L, WILLBLOCK}, 114 {F_RDLCK, 0, 2L, 3L, WILLBLOCK}, 116 {F_RDLCK, 0, 6L, 3L, WILLBLOCK}, 121 {F_RDLCK, 0, 3L, 5L, IGNORED}, [all …]
|
D | fcntl14.c | 54 #if SKIP == F_RDLCK || SKIP== F_WRLCK 55 #error invalid value for SKIP, must be distinct from F_RDLCK and F_WRLCK 90 F_RDLCK, 0, 0L, 0L, WILLBLOCK}, 98 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 100 F_RDLCK, 0, 0L, 0L, NOBLOCK}, 103 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 114 F_RDLCK, 0, 0L, 5L, WILLBLOCK}, 125 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 130 F_RDLCK, 0, 0L, 5L, NOBLOCK}, 133 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, [all …]
|
D | fcntl21.c | 332 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 0, 0) < 0) { in main() 342 compare_lock(&tl, (short)F_RDLCK, (short)0, 0, 0, parent_pid); in main() 396 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 418 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid); in main() 446 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 468 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid); in main() 496 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 518 compare_lock(&tl, (short)F_RDLCK, (short)0, 11, 4, parent_pid); in main() 546 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 568 compare_lock(&tl, (short)F_RDLCK, (short)0, 13, 2, parent_pid); in main() [all …]
|
D | fcntl11.c | 286 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 1, 5) < 0) in main() 293 compare_lock(&tl, (short)F_RDLCK, (short)0, 1, 5, parent_pid); in main() 324 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 5) < 0) in main() 331 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 5, parent_pid); in main() 362 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 6) < 0) in main() 369 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 6, parent_pid); in main() 400 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 8) < 0) in main() 407 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 8, parent_pid); in main() 438 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 13, 5) < 0) in main() 451 compare_lock(&tl, (short)F_RDLCK, (short)0, 13, 5, parent_pid); in main() [all …]
|
D | fcntl20.c | 325 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 341 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid); in main() 368 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 384 compare_lock(&tl, (short)F_RDLCK, (short)0, 11, 4, parent_pid); in main() 411 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 427 compare_lock(&tl, (short)F_RDLCK, (short)0, 13, 2, parent_pid); in main() 454 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 10) < 0) { in main() 470 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 3, parent_pid); in main() 476 compare_lock(&tl, (short)F_RDLCK, (short)0, 18, 2, parent_pid); in main() 503 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() [all …]
|
D | fcntl33.c | 68 {F_RDLCK, OP_OPEN_WRONLY, 70 {F_RDLCK, OP_OPEN_RDWR, 72 {F_RDLCK, OP_TRUNCATE, 133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in do_test() 148 case F_RDLCK: in do_test()
|
D | fcntl23.c | 136 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main() 146 if (TEST_RETURN != F_RDLCK) in main()
|
/external/strace/tests-mx32/ |
D | fcntl-common.c | 66 fl->l_type = F_RDLCK; in test_flock_einval() 90 fl->l_type = F_RDLCK; in test_flock64_einval() 113 fl->l_type = F_RDLCK; in test_flock() 143 fl->l_type = F_RDLCK; in test_flock64_ofd() 317 case F_RDLCK: in print_flags_getlease() 348 { 1, ARG_STR(F_SETLEASE), ARG_STR(F_RDLCK) }, in test_fcntl_others()
|
D | fcntl64.c | 46 fl->l_type = F_RDLCK; in test_flock64_lk64()
|
D | fcntl.c | 42 .l_type = F_RDLCK, in test_flock64_undecoded()
|
/external/strace/tests-m32/ |
D | fcntl-common.c | 66 fl->l_type = F_RDLCK; in test_flock_einval() 90 fl->l_type = F_RDLCK; in test_flock64_einval() 113 fl->l_type = F_RDLCK; in test_flock() 143 fl->l_type = F_RDLCK; in test_flock64_ofd() 317 case F_RDLCK: in print_flags_getlease() 348 { 1, ARG_STR(F_SETLEASE), ARG_STR(F_RDLCK) }, in test_fcntl_others()
|
D | fcntl64.c | 46 fl->l_type = F_RDLCK; in test_flock64_lk64()
|
/external/strace/tests/ |
D | fcntl-common.c | 66 fl->l_type = F_RDLCK; in test_flock_einval() 90 fl->l_type = F_RDLCK; in test_flock64_einval() 113 fl->l_type = F_RDLCK; in test_flock() 143 fl->l_type = F_RDLCK; in test_flock64_ofd() 317 case F_RDLCK: in print_flags_getlease() 348 { 1, ARG_STR(F_SETLEASE), ARG_STR(F_RDLCK) }, in test_fcntl_others()
|
D | fcntl.c | 42 .l_type = F_RDLCK, in test_flock64_undecoded()
|
D | fcntl64.c | 46 fl->l_type = F_RDLCK; in test_flock64_lk64()
|
/external/strace/xlat/ |
D | lockfcmds.h | 17 #if defined(F_RDLCK) || (defined(HAVE_DECL_F_RDLCK) && HAVE_DECL_F_RDLCK) 18 XLAT(F_RDLCK),
|
D | lockfcmds.in | 1 F_RDLCK
|
/external/ltp/testcases/network/nfs/nfslock01/ |
D | nfs_flock.h | 11 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK) 17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLKW)
|
/external/kernel-headers/original/uapi/asm-generic/ |
D | fcntl.h | 165 #ifndef F_RDLCK 166 #define F_RDLCK 0 macro
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/filelock/leases_conflict/ |
D | format | 17 …F_RDLCK" }, { 1, "F_WRLCK" }, { 2, "F_UNLCK" }), REC->breaker, __print_flags(REC->b_fl_flags, "|",…
|
/external/ltp/testcases/kernel/fs/doio/ |
D | file_lock.c | 82 flocks.l_type = F_RDLCK; in file_lock() 154 flocks.l_type = F_RDLCK; in record_lock()
|
/external/python/cpython2/Modules/ |
D | fcntlmodule.c | 278 l.l_type = F_RDLCK; in fcntl_flock() 336 l.l_type = F_RDLCK; in fcntl_lockf() 495 #ifdef F_RDLCK in all_ins() 496 if (ins(d, "F_RDLCK", (long)F_RDLCK)) return -1; in all_ins()
|
/external/python/cpython3/Modules/ |
D | fcntlmodule.c | 311 l.l_type = F_RDLCK; in fcntl_flock_impl() 392 l.l_type = F_RDLCK; in fcntl_lockf_impl() 528 #ifdef F_RDLCK in all_ins() 529 if (PyModule_AddIntMacro(m, F_RDLCK)) return -1; in all_ins()
|
/external/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 420 ((u32)ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in _tdb_lock() 515 ((u32)ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_unlock() 736 return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); in tdb_lockall_read() 742 return _tdb_lockall(tdb, F_RDLCK, F_SETLK); in tdb_lockall_read_nonblock() 748 return _tdb_unlockall(tdb, F_RDLCK); in tdb_unlockall_read() 785 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read() 790 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read() 798 return off ? tdb->methods->tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0, 1) : 0; in tdb_lock_record() 1651 if (tdb_brlock(tdb, FREELIST_TOP, F_RDLCK, F_SETLKW, 0, 0) == -1) { in tdb_transaction_start() 2836 struct tdb_traverse_lock tl = { NULL, 0, 0, F_RDLCK }; in tdb_traverse_read() [all …]
|
/external/python/cpython2/Lib/ |
D | posixfile.py | 157 elif 'r' in how: l_type = fcntl.F_RDLCK 215 if l_type == fcntl.F_RDLCK:
|