Home
last modified time | relevance | path

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

123

/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,
144 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in do_test()
159 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/
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()
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/llvm-project/lldb/source/Host/posix/
DLockFilePosix.cpp53 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock()
57 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h165 #ifndef F_RDLCK
166 #define F_RDLCK 0 macro
/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.c323 l.l_type = F_RDLCK; in fcntl_flock_impl()
404 l.l_type = F_RDLCK; in fcntl_lockf_impl()
540 #ifdef F_RDLCK in all_ins()
541 if (PyModule_AddIntMacro(m, F_RDLCK)) return -1; in all_ins()
/external/openssh/openbsd-compat/
Dbsd-flock.c57 fl.l_type = F_RDLCK; in flock()

123