Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 – 25 of 110) sorted by relevance

12345

/external/ltp/testcases/kernel/syscalls/fcntl/
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, 0, 0L, 5L, WILLBLOCK},
[all …]
Dfcntl11.c183 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
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, (short)0, 0, 0); in main()
336 do_test(&tl, (short)F_WRLCK, (short)0, 10, 0); in main()
337 compare_lock(&tl, (short)F_WRLCK, (short)0, 10, 5, parent_pid); in main()
[all …]
Dfcntl21.c216 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
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, (short)0, 1, 5, parent_pid); in main()
417 do_test(&tl, F_WRLCK, 0, 6, 0); in main()
423 do_test(&tl, F_WRLCK, 0, 15, 0); in main()
[all …]
Dfcntl19.c209 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
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, (short)0, 11, 4, parent_pid); in main()
390 do_test(&tl, (short)F_WRLCK, (short)0, 15, 0); in main()
413 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
[all …]
Dfcntl20.c208 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
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, (short)0, 0, 0); in main()
475 do_test(&tl, (short)F_WRLCK, (short)0, 13, 0); in main()
481 do_test(&tl, (short)F_WRLCK, (short)0, 20, 0); in main()
[all …]
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, 0, 0L, 0L, IGNORED},
[all …]
Dfcntl33.c60 {F_WRLCK, OP_OPEN_RDONLY,
62 {F_WRLCK, OP_OPEN_WRONLY,
64 {F_WRLCK, OP_OPEN_RDWR,
66 {F_WRLCK, OP_TRUNCATE,
136 case F_WRLCK: in do_test()
Dfcntl15.c115 flock.l_type = F_WRLCK; in dochild1()
252 flock.l_type = F_WRLCK; in dochild2()
265 flock.l_type = F_WRLCK; in dochild2()
316 flock.l_type = F_WRLCK; in dochild2()
329 flock.l_type = F_WRLCK; in dochild2()
416 flock.l_type = F_WRLCK; in run_test()
430 flock.l_type = F_WRLCK; in run_test()
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()
Dfcntl24.c142 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
151 if (TEST_RETURN != F_WRLCK) in main()
Dfcntl25.c143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
152 if (TEST_RETURN != F_WRLCK) in main()
Dfcntl26.c143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
152 if (TEST_RETURN != F_WRLCK) in main()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c344 if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) { in tdb_brlock()
386 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) { in tdb_brlock_upgrade()
698 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW); in tdb_lockall()
704 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW); in tdb_lockall_mark()
710 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); in tdb_lockall_unmark()
716 return _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock()
722 return _tdb_unlockall(tdb, F_WRLCK); in tdb_unlockall()
747 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
755 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock()
761 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark()
[all …]
/external/python/cpython3/Lib/test/
Dtest_fcntl.py34 fcntl.F_WRLCK, 0)
36 lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
38 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
40 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
/external/strace/xlat/
Dlockfcmds.h20 #if defined(F_WRLCK) || (defined(HAVE_DECL_F_WRLCK) && HAVE_DECL_F_WRLCK)
21 XLAT(F_WRLCK),
Dlockfcmds.in2 F_WRLCK
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h13 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK)
19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLKW)
/external/python/cpython2/Lib/test/
Dtest_fcntl.py39 fcntl.F_WRLCK, 0)
41 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
45 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D11-1.c31 .l_type = F_WRLCK, in child()
69 .l_type = F_WRLCK, in main()
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c80 flocks.l_type = F_WRLCK; in file_lock()
152 flocks.l_type = F_WRLCK; in record_lock()
/external/python/cpython3/Modules/
Dfcntlmodule.c312 l.l_type = F_WRLCK; in fcntl_flock_impl()
388 l.l_type = F_WRLCK; in fcntl_lockf_impl()
513 #ifdef F_WRLCK in all_ins()
514 if (PyModule_AddIntMacro(m, F_WRLCK)) return -1; in all_ins()
/external/python/cpython2/Modules/
Dfcntlmodule.c280 l.l_type = F_WRLCK; in fcntl_flock()
338 l.l_type = F_WRLCK; in fcntl_lockf()
498 #ifdef F_WRLCK in all_ins()
499 if (ins(d, "F_WRLCK", (long)F_WRLCK)) return -1; in all_ins()
/external/ltp/testcases/network/nfsv4/locks/
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()
/external/ppp/pppd/plugins/radius/
Dlock.c23 fl.l_type = F_WRLCK; in do_lock_exclusive()
/external/syzkaller/sys/linux/
Dfuse_386.const39 F_WRLCK = 1

12345