Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl16.c57 #if (SKIPVAL == F_RDLCK) || (SKIPVAL == F_WRLCK)
58 #error invalid SKIP, must not be F_RDLCK or F_WRLCK
82 {F_RDLCK, 0, 0L, 5L, NOBLOCK},
84 {F_RDLCK, 0, 6L, 5L, NOBLOCK},
88 {F_RDLCK, 0, 0L, 0L, IGNORED},
97 {F_RDLCK, 0, 0L, 5L, WILLBLOCK},
99 {F_RDLCK, 0, 6L, 5L, WILLBLOCK},
113 {F_RDLCK, 0, 2L, 3L, WILLBLOCK},
115 {F_RDLCK, 0, 6L, 3L, WILLBLOCK},
120 {F_RDLCK, 0, 3L, 5L, IGNORED},
[all …]
Dfcntl14.c53 #if SKIP == F_RDLCK || SKIP== F_WRLCK
54 #error invalid value for SKIP, must be distinct from F_RDLCK and F_WRLCK
89 F_RDLCK, 0, 0L, 0L, WILLBLOCK},
97 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
99 F_RDLCK, 0, 0L, 0L, NOBLOCK},
102 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
113 F_RDLCK, 0, 0L, 5L, WILLBLOCK},
124 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
129 F_RDLCK, 0, 0L, 5L, NOBLOCK},
132 {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.c79 {F_RDLCK, OP_OPEN_WRONLY,
81 {F_RDLCK, OP_OPEN_RDWR,
83 {F_RDLCK, OP_TRUNCATE,
187 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in do_test()
190 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()
Dfcntl27.c133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
Dfcntl28.c130 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
Dfcntl05.c143 flocks.l_type = F_RDLCK; in main()
/external/strace/xlat/
Dlockfcmds.h11 #if defined(F_RDLCK) || (defined(HAVE_DECL_F_RDLCK) && HAVE_DECL_F_RDLCK)
12 XLAT(F_RDLCK),
Dlockfcmds.in1 F_RDLCK
/external/strace/tests/
Dfcntl64.c43 .l_type = F_RDLCK, in test_flock64_einval()
64 .l_type = F_RDLCK, in test_flock64()
Dstruct_flock.c57 .l_type = F_RDLCK, in test_flock_einval()
74 .l_type = F_RDLCK, in test_flock()
Dfcntl.c43 .l_type = F_RDLCK, in test_flock64_einval()
/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/strace/tests-mx32/
Dfcntl64.c43 .l_type = F_RDLCK, in test_flock64_einval()
64 .l_type = F_RDLCK, in test_flock64()
Dstruct_flock.c57 .l_type = F_RDLCK, in test_flock_einval()
74 .l_type = F_RDLCK, in test_flock()
Dfcntl.c43 .l_type = F_RDLCK, in test_flock64_einval()
/external/strace/tests-m32/
Dfcntl64.c43 .l_type = F_RDLCK, in test_flock64_einval()
64 .l_type = F_RDLCK, in test_flock64()
Dstruct_flock.c57 .l_type = F_RDLCK, in test_flock_einval()
74 .l_type = F_RDLCK, in test_flock()
Dfcntl.c43 .l_type = F_RDLCK, in test_flock64_einval()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h164 #ifndef F_RDLCK
165 #define F_RDLCK 0 macro
/external/ltp/lib/
Dfile_lock.c82 flocks.l_type = F_RDLCK; in file_lock()
154 flocks.l_type = F_RDLCK; in record_lock()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c415 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in _tdb_lock()
510 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_unlock()
730 return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); in tdb_lockall_read()
736 return _tdb_lockall(tdb, F_RDLCK, F_SETLK); in tdb_lockall_read_nonblock()
742 return _tdb_unlockall(tdb, F_RDLCK); in tdb_unlockall_read()
779 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
784 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
792 return off ? tdb->methods->tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0, 1) : 0; in tdb_lock_record()
1640 if (tdb_brlock(tdb, FREELIST_TOP, F_RDLCK, F_SETLKW, 0, 0) == -1) { in tdb_transaction_start()
2824 struct tdb_traverse_lock tl = { NULL, 0, 0, F_RDLCK }; in tdb_traverse_read()
[all …]

12