/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl14.c | 53 #if SKIP == F_RDLCK || SKIP== F_WRLCK 54 #error invalid value for SKIP, must be distinct from F_RDLCK and F_WRLCK 87 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 92 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 94 F_WRLCK, 0, 0L, 0L, WILLBLOCK}, 104 F_WRLCK, 0, 0L, 0L, WILLBLOCK}, 108 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 116 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L, 121 F_WRLCK, 0, 0L, 5L, WILLBLOCK}, 137 F_WRLCK, 0, 0L, 5L, WILLBLOCK}, [all …]
|
D | fcntl11.c | 183 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 …]
|
D | fcntl21.c | 216 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 …]
|
D | fcntl19.c | 209 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 …]
|
D | fcntl20.c | 208 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 …]
|
D | fcntl16.c | 57 #if (SKIPVAL == F_RDLCK) || (SKIPVAL == F_WRLCK) 58 #error invalid SKIP, must not be F_RDLCK or F_WRLCK 78 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 93 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 104 {F_WRLCK, 0, 0L, 0L, IGNORED}, 109 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 125 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 141 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 157 {{F_WRLCK, 0, 0L, 0L, IGNORED}, 170 {{F_WRLCK, 0, 0L, 0L, IGNORED}, [all …]
|
D | fcntl33.c | 71 {F_WRLCK, OP_OPEN_RDONLY, 73 {F_WRLCK, OP_OPEN_WRONLY, 75 {F_WRLCK, OP_OPEN_RDWR, 77 {F_WRLCK, OP_TRUNCATE, 186 case F_WRLCK: in do_test()
|
D | fcntl15.c | 115 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()
|
D | fcntl17.c | 74 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()
|
D | fcntl25.c | 143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main() 152 if (TEST_RETURN != F_WRLCK) in main()
|
D | fcntl26.c | 143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main() 152 if (TEST_RETURN != F_WRLCK) in main()
|
D | fcntl24.c | 142 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main() 151 if (TEST_RETURN != F_WRLCK) in main()
|
D | fcntl22.c | 113 fl.l_type = F_WRLCK; in setup()
|
D | fcntl13.c | 100 flock.l_type = F_WRLCK; in main()
|
D | fcntl06.c | 101 if (do_lock(F_RSETLK, F_WRLCK, 0, 10, 5) == -1) in main()
|
/external/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 346 if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) { in tdb_brlock() 388 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) { in tdb_brlock_upgrade() 700 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW); in tdb_lockall() 706 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW); in tdb_lockall_mark() 712 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); in tdb_lockall_unmark() 718 return _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock() 724 return _tdb_unlockall(tdb, F_WRLCK); in tdb_unlockall() 749 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock() 757 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock() 763 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark() [all …]
|
/external/strace/xlat/ |
D | lockfcmds.h | 14 #if defined(F_WRLCK) || (defined(HAVE_DECL_F_WRLCK) && HAVE_DECL_F_WRLCK) 15 XLAT(F_WRLCK),
|
D | lockfcmds.in | 2 F_WRLCK
|
/external/ltp/testcases/network/nfs/nfslock01/ |
D | nfs_flock.h | 13 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK) 19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLKW)
|
/external/ltp/lib/ |
D | file_lock.c | 80 flocks.l_type = F_WRLCK; in file_lock() 152 flocks.l_type = F_WRLCK; in record_lock()
|
/external/ppp/pppd/plugins/radius/ |
D | lock.c | 23 fl.l_type = F_WRLCK; in do_lock_exclusive()
|
/external/ltp/testcases/network/nfsv4/locks/ |
D | locktests.c | 175 request.l_type = F_WRLCK; in validationResultats() 672 request.l_type = F_WRLCK; in maitre() 699 request.l_type = F_WRLCK; in maitre() 922 P("WRITE LOCK %d\n", F_WRLCK); in esclave() 933 request.l_type = F_WRLCK; in esclave()
|
/external/valgrind/none/tests/ |
D | mmap_fcntl_bug.c | 38 fl.l_type = F_WRLCK; in main()
|
/external/valgrind/memcheck/tests/ |
D | file_locking.c | 28 fl.l_type = F_WRLCK; /* exclusive lock */ in lock_file()
|
/external/kernel-headers/original/uapi/asm-generic/ |
D | fcntl.h | 166 #define F_WRLCK 1 macro
|