Searched refs:F_RDLCK (Results 1 - 25 of 44) sorted by relevance

12

/external/strace/xlat/
H A Dlockfcmds.h11 #if defined(F_RDLCK) || (defined(HAVE_DECL_F_RDLCK) && HAVE_DECL_F_RDLCK)
12 XLAT(F_RDLCK),
/external/ltp/testcases/kernel/syscalls/fcntl/
H A 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,
[all...]
H A Dfcntl21.c226 return ("F_RDLCK");
332 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 0, 0) < 0) {
342 compare_lock(&tl, (short)F_RDLCK, (short)0, 0, 0, parent_pid);
396 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
418 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid);
446 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
468 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid);
496 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
518 compare_lock(&tl, (short)F_RDLCK, (short)0, 11, 4, parent_pid);
546 if (do_lock(F_SETLK, (short)F_RDLCK, (shor
[all...]
H A Dfcntl20.c218 return ("F_RDLCK");
325 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
341 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 5, parent_pid);
368 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
384 compare_lock(&tl, (short)F_RDLCK, (short)0, 11, 4, parent_pid);
411 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) {
427 compare_lock(&tl, (short)F_RDLCK, (short)0, 13, 2, parent_pid);
454 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 10) < 0) {
470 compare_lock(&tl, (short)F_RDLCK, (short)0, 10, 3, parent_pid);
476 compare_lock(&tl, (short)F_RDLCK, (shor
[all...]
H A Dfcntl11.c193 return ("F_RDLCK");
286 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 1, 5) < 0)
293 compare_lock(&tl, (short)F_RDLCK, (short)0, 1, 5, parent_pid);
324 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 5) < 0)
331 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 5, parent_pid);
362 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 6) < 0)
369 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 6, parent_pid);
400 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 8) < 0)
407 compare_lock(&tl, (short)F_RDLCK, (short)0, 5, 8, parent_pid);
438 if (do_lock(F_SETLK, (short)F_RDLCK, (shor
[all...]
H A 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,
[all...]
H A Dfcntl23.c26 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
134 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname
136 TEST(fcntl(fd, F_SETLEASE, F_RDLCK));
141 "fcntl(%s, F_SETLEASE, F_RDLCK) Failed, errno=%d : %s",
146 if (TEST_RETURN != F_RDLCK)
148 "fcntl(%s, F_GETLEASE) did not return F_RDLCK, returned %ld",
158 "fcntl(%s, F_SETLEASE, F_RDLCK)",
H A Dfcntl33.c79 {F_RDLCK, OP_OPEN_WRONLY,
80 "open(O_WRONLY) conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
81 {F_RDLCK, OP_OPEN_RDWR,
82 "open(O_RDWR) conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
83 {F_RDLCK, OP_TRUNCATE,
84 "truncate() conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
187 TEST(fcntl(fd, F_SETLEASE, F_RDLCK));
190 case F_RDLCK:
H A Dfcntl05.c143 flocks.l_type = F_RDLCK;
H A Dfcntl27.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
131 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname
133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK));
138 "fcntl(fd, F_SETLEASE, F_RDLCK) succeeded");
140 tst_resm(TFAIL, "fcntl(%s, F_SETLEASE, F_RDLCK)"
H A Dfcntl28.c24 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
128 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname
130 TEST(fcntl(fd, F_SETLEASE, F_RDLCK));
135 "fcntl(fd, F_SETLEASE, F_RDLCK) succeeded");
137 tst_resm(TFAIL, "fcntl(%s, F_SETLEASE, F_RDLCK)"
H A Dfcntl09.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK;
165 fname, type ? "F_RDLCK" : "F_WRLCK",
172 type ? "F_RDLCK" : "F_WRLCK",
H A Dfcntl10.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK;
165 fname, type ? "F_RDLCK" : "F_WRLCK",
170 fname, type ? "F_RDLCK" : "F_WRLCK",
/external/strace/tests/
H A Dfcntl64.c44 .l_type = F_RDLCK,
49 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
65 .l_type = F_RDLCK,
69 printf("%s(0, F_SETLK64, {l_type=F_RDLCK, l_whence=SEEK_SET"
H A Dfcntl.c44 .l_type = F_RDLCK,
H A Dstruct_flock.c58 .l_type = F_RDLCK,
63 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
75 .l_type = F_RDLCK,
79 printf("%s(0, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET"
/external/strace/tests-m32/
H A Dfcntl64.c44 .l_type = F_RDLCK,
49 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
65 .l_type = F_RDLCK,
69 printf("%s(0, F_SETLK64, {l_type=F_RDLCK, l_whence=SEEK_SET"
H A Dfcntl.c44 .l_type = F_RDLCK,
H A Dstruct_flock.c58 .l_type = F_RDLCK,
63 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
75 .l_type = F_RDLCK,
79 printf("%s(0, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET"
/external/strace/tests-mx32/
H A Dfcntl64.c44 .l_type = F_RDLCK,
49 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
65 .l_type = F_RDLCK,
69 printf("%s(0, F_SETLK64, {l_type=F_RDLCK, l_whence=SEEK_SET"
H A Dfcntl.c44 .l_type = F_RDLCK,
H A Dstruct_flock.c58 .l_type = F_RDLCK,
63 printf("%s(0, %s, {l_type=F_RDLCK, l_whence=SEEK_SET"
75 .l_type = F_RDLCK,
79 printf("%s(0, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET"
/external/ltp/testcases/network/nfs/nfslock01/
H A 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/
H A Dfcntl.h164 #ifndef F_RDLCK
165 #define F_RDLCK 0 macro
/external/ltp/testcases/kernel/fs/doio/
H A Dfile_lock.c82 flocks.l_type = F_RDLCK;
154 flocks.l_type = F_RDLCK;

Completed in 256 milliseconds

12