Home
last modified time | relevance | path

Searched refs:F_RDLCK (Results 1 – 25 of 82) sorted by relevance

1234

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl16.c58 #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 …]
Dfcntl14.c54 #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 …]
Dfcntl21.c332 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 …]
Dfcntl11.c286 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 …]
Dfcntl20.c325 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 …]
Dfcntl33.c68 {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()
Dfcntl23.c136 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
146 if (TEST_RETURN != F_RDLCK) in main()
/external/strace/tests-mx32/
Dfcntl-common.c66 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()
Dfcntl64.c46 fl->l_type = F_RDLCK; in test_flock64_lk64()
Dfcntl.c42 .l_type = F_RDLCK, in test_flock64_undecoded()
/external/strace/tests-m32/
Dfcntl-common.c66 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()
Dfcntl64.c46 fl->l_type = F_RDLCK; in test_flock64_lk64()
/external/strace/tests/
Dfcntl-common.c66 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()
Dfcntl.c42 .l_type = F_RDLCK, in test_flock64_undecoded()
Dfcntl64.c46 fl->l_type = F_RDLCK; in test_flock64_lk64()
/external/strace/xlat/
Dlockfcmds.h17 #if defined(F_RDLCK) || (defined(HAVE_DECL_F_RDLCK) && HAVE_DECL_F_RDLCK)
18 XLAT(F_RDLCK),
Dlockfcmds.in1 F_RDLCK
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h11 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/
Dfcntl.h165 #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/
Dformat17F_RDLCK" }, { 1, "F_WRLCK" }, { 2, "F_UNLCK" }), REC->breaker, __print_flags(REC->b_fl_flags, "|",…
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c82 flocks.l_type = F_RDLCK; in file_lock()
154 flocks.l_type = F_RDLCK; in record_lock()
/external/python/cpython2/Modules/
Dfcntlmodule.c278 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/
Dfcntlmodule.c311 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/
Dtdb.c420 ((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/
Dposixfile.py157 elif 'r' in how: l_type = fcntl.F_RDLCK
215 if l_type == fcntl.F_RDLCK:

1234