Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 - 25 of 90) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl14.c54 #if SKIP == F_RDLCK || SKIP== F_WRLCK
55 #error invalid value for SKIP, must be distinct from F_RDLCK and F_WRLCK
88 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
93 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
95 F_WRLCK, 0, 0L, 0L, WILLBLOCK},
105 F_WRLCK, 0, 0L, 0L, WILLBLOCK},
109 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
117 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
122 F_WRLCK, 0, 0L, 5L, WILLBLOCK},
138 F_WRLCK,
[all...]
H A Dfcntl21.c216 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
227 case F_WRLCK: in str_type()
228 return ("F_WRLCK"); in str_type()
341 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
363 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 0, 0) < 0) { in main()
372 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
373 compare_lock(&tl, (short)F_WRLCK, (short)0, 0, 0, parent_pid); in main()
402 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 1, 5) < 0) { in main()
411 do_test(&tl, F_WRLCK, 0, 0, 0); in main()
412 compare_lock(&tl, (short)F_WRLCK, (shor in main()
[all...]
H A Dfcntl11.c183 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
194 case F_WRLCK: in str_type()
195 return ("F_WRLCK"); in str_type()
283 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
292 do_test(&tl, F_WRLCK, 0, 0, 0); in main()
298 do_test(&tl, F_WRLCK, 0, 6, 0); in main()
299 compare_lock(&tl, (short)F_WRLCK, (short)0, 10, 5, parent_pid); in main()
304 do_test(&tl, F_WRLCK, 0, 15, 0); in main()
321 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
330 do_test(&tl, (short)F_WRLCK, (shor in main()
[all...]
H A Dfcntl19.c209 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
220 case F_WRLCK: in str_type()
221 return ("F_WRLCK"); in str_type()
326 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
341 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
342 compare_lock(&tl, (short)F_WRLCK, (short)0, 10, 5, parent_pid); in main()
347 do_test(&tl, (short)F_WRLCK, (short)0, 15, 0); in main()
369 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
384 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
385 compare_lock(&tl, (short)F_WRLCK, (shor in main()
[all...]
H A Dfcntl20.c208 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
219 case F_WRLCK: in str_type()
220 return ("F_WRLCK"); in str_type()
340 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
346 do_test(&tl, (short)F_WRLCK, (short)0, 15, 0); in main()
383 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
389 do_test(&tl, (short)F_WRLCK, (short)0, 15, 0); in main()
426 do_test(&tl, (short)F_WRLCK, (short)0, 0, 0); in main()
432 do_test(&tl, (short)F_WRLCK, (short)0, 15, 0); in main()
469 do_test(&tl, (short)F_WRLCK, (shor in main()
[all...]
H A Dfcntl16.c58 #if (SKIPVAL == F_RDLCK) || (SKIPVAL == F_WRLCK)
59 #error invalid SKIP, must not be F_RDLCK or F_WRLCK
79 {{F_WRLCK, 0, 0L, 0L, IGNORED},
94 {{F_WRLCK, 0, 0L, 0L, IGNORED},
105 {F_WRLCK, 0, 0L, 0L, IGNORED},
110 {{F_WRLCK, 0, 0L, 0L, IGNORED},
126 {{F_WRLCK, 0, 0L, 0L, IGNORED},
142 {{F_WRLCK, 0, 0L, 0L, IGNORED},
158 {{F_WRLCK, 0, 0L, 0L, IGNORED},
171 {{F_WRLCK,
[all...]
H A Dfcntl33.c60 {F_WRLCK, OP_OPEN_RDONLY,
61 "open(O_RDONLY) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
62 {F_WRLCK, OP_OPEN_WRONLY,
63 "open(O_WRONLY) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
64 {F_WRLCK, OP_OPEN_RDWR,
65 "open(O_RDWR) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
66 {F_WRLCK, OP_TRUNCATE,
67 "truncate() conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
109 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in do_test()
132 case F_WRLCK in do_test()
[all...]
H A Dfcntl17.c74 struct flock lock1 = { (short)F_WRLCK, (short)0, 2, 5, (short)0 };
75 struct flock lock2 = { (short)F_WRLCK, (short)0, 9, 5, (short)0 };
76 struct flock lock3 = { (short)F_WRLCK, (short)0, 17, 5, (short)0 };
77 struct flock lock4 = { (short)F_WRLCK, (short)0, 17, 5, (short)0 };
78 struct flock lock5 = { (short)F_WRLCK, (short)0, 2, 14, (short)0 };
340 case F_WRLCK: in str_type()
341 return ("F_WRLCK"); in str_type()
H A Dfcntl25.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
141 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
149 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
152 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
157 if (TEST_RETURN != F_WRLCK) in main()
159 "fcntl(%s, F_GETLEASE) did not return F_WRLCK, returned %ld", in main()
169 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
H A Dfcntl26.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
141 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
149 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
152 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
157 if (TEST_RETURN != F_WRLCK) in main()
159 "fcntl(%s, F_GETLEASE) did not return F_WRLCK, returned %ld", in main()
169 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
H A Dfcntl24.c26 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
140 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
142 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
148 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
151 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
156 if (TEST_RETURN != F_WRLCK) in main()
158 "fcntl(%s, F_GETLEASE) did not return F_WRLCK, returned %ld", in main()
168 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
H A Dfcntl15.c47 .l_type = F_WRLCK,
54 .l_type = F_WRLCK,
H A Dfcntl13.c54 flock.l_type = F_WRLCK; in setup()
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/
H A Dfcntl_fcntl_test.cpp61 fileLock.l_type = F_WRLCK; in HWTEST_F()
82 fileLock.l_type = F_WRLCK; in HWTEST_F()
187 fileLock.l_type = F_WRLCK; in HWTEST_F()
209 fileLock.l_type = F_WRLCK; in HWTEST_F()
/third_party/node/tools/gyp/pylib/gyp/
H A Dflock_tool.py47 op = struct.pack("hhIllqq", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
49 op = struct.pack("hhllhhl", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dflock_tool.py47 op = struct.pack("hhIllqq", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
49 op = struct.pack("hhllhhl", fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
/third_party/ltp/testcases/network/nfs/nfslock01/
H A Dnfs_flock.h19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK)
25 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLKW)
/third_party/musl/libc-test/src/functional/
H A Dfcntl.c23 fl.l_type = F_WRLCK; in main()
40 fl.l_type = F_WRLCK; in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D11-1.c31 .l_type = F_WRLCK, in child()
44 printf("Child found lock is F_UNLCK, should be F_WRLCK\n"); in child()
69 .l_type = F_WRLCK, in main()
/third_party/python/Lib/test/
H A Dtest_fcntl.py36 fcntl.F_WRLCK, 0)
38 lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
40 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
42 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
/third_party/ltp/testcases/kernel/fs/doio/
H A Dfile_lock.c80 flocks.l_type = F_WRLCK; in file_lock()
152 flocks.l_type = F_WRLCK; in record_lock()
/third_party/ltp/testcases/network/nfsv4/locks/
H A Dlocktests.c162 request.l_type = F_WRLCK; in validationResults()
627 request.l_type = F_WRLCK; in master()
653 request.l_type = F_WRLCK; in master()
850 P("WRITE LOCK %d\n", F_WRLCK); in slave()
860 request.l_type = F_WRLCK; in slave()
/third_party/python/Modules/
H A Dfcntlmodule.c313 l.l_type = F_WRLCK; in fcntl_flock_impl()
394 l.l_type = F_WRLCK; in fcntl_lockf_impl()
531 #ifdef F_WRLCK in all_ins()
532 if (PyModule_AddIntMacro(m, F_WRLCK)) return -1; in all_ins()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dlockf.c9 .l_type = F_WRLCK, in lockf()
/third_party/musl/src/misc/
H A Dlockf.c9 .l_type = F_WRLCK, in lockf()

Completed in 15 milliseconds

1234