Home
last modified time | relevance | path

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

123

/third_party/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.c225 case F_RDLCK: in str_type()
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()
[all …]
Dfcntl11.c192 case F_RDLCK: in str_type()
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()
[all …]
Dfcntl20.c217 case F_RDLCK: in str_type()
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()
[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()
Dfcntl05.c40 flocks.l_type = F_RDLCK; in verify_fcntl()
Dfcntl28.c130 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
Dfcntl27.c133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
Dfcntl36.c165 lck.l_type = F_RDLCK; in fn_ofd_r()
225 lck.l_type = F_RDLCK; in fn_posix_r()
Dfcntl09.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
Dfcntl10.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
Dfcntl17.c289 fl.l_type = /* lock->l_type */ F_RDLCK; in do_test()
338 case F_RDLCK: in str_type()
/third_party/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK)
23 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLKW)
/third_party/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()
/third_party/python/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()
/third_party/musl/porting/liteos_a/user/src/misc/
Dlockf.c16 l.l_type = F_RDLCK; in lockf()
/third_party/musl/src/misc/
Dlockf.c17 l.l_type = F_RDLCK; in lockf()
/third_party/ltp/testcases/network/nfsv4/locks/
Dlocktests.c621 request.l_type = F_RDLCK; in master()
647 request.l_type = F_RDLCK; in master()
823 P("READ LOCK %d\n", F_RDLCK); in slave()
834 request.l_type = F_RDLCK; in slave()
/third_party/musl/libc-test/src/functional/
Dfcntl.c31 fl.l_type = F_RDLCK; in main()
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/b32/
Dmod.rs182 pub const F_RDLCK: ::c_int = 1; constant
228 pub const F_RDLCK: ::c_int = 0; constant
/third_party/musl/libc-test/src/api/
Dfcntl.c20 C(F_RDLCK) in f()
/third_party/musl/porting/uniproton/kernel/include/
Dfcntl.h54 #define F_RDLCK 0 macro
/third_party/musl/porting/liteos_m/kernel/include/
Dfcntl.h54 #define F_RDLCK 0 macro

123