Home
last modified time | relevance | path

Searched refs:F_SETLK (Results 1 – 25 of 84) sorted by relevance

1234

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl11.c181 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) in unlock_file()
283 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
286 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 1, 5) < 0) in main()
321 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
324 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 5) < 0) in main()
359 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
362 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 6) < 0) in main()
397 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main()
400 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 8) < 0) in main()
435 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 10) < 0) in main()
[all …]
Dfcntl21.c212 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
332 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 0, 0) < 0) { in main()
363 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 0, 0) < 0) { in main()
396 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
402 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 1, 5) < 0) { in main()
446 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
452 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 5, 5) < 0) { in main()
496 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
502 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 5, 6) < 0) { in main()
546 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
[all …]
Dfcntl19.c205 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
326 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
332 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main()
369 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
375 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main()
413 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
419 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main()
457 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 10) < 0) { in main()
463 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 13, 5) < 0) { in main()
507 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main()
[all …]
Dfcntl20.c204 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
325 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
331 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main()
368 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
374 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main()
411 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
417 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main()
454 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 10) < 0) { in main()
460 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 13, 5) < 0) { in main()
503 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main()
[all …]
Dfcntl15.c121 if ((fcntl(fd_B, F_SETLK, &flock)) < 0) { in dochild1()
258 if ((fcntl(fd_C, F_SETLK, &flock)) >= 0) { in dochild2()
271 if ((fcntl(fd_C, F_SETLK, &flock)) >= 0) { in dochild2()
322 if ((fcntl(fd_C, F_SETLK, &flock)) < 0) { in dochild2()
336 if ((fcntl(fd_C, F_SETLK, &flock)) >= 0) { in dochild2()
342 if ((fcntl(fd_C, F_SETLK, &flock)) < 0) { in dochild2()
422 if ((fcntl(fd_A, F_SETLK, &flock)) < 0) { in run_test()
436 if ((fcntl(fd_B, F_SETLK, &flock)) < 0) { in run_test()
Dfcntl22.c66 TEST(fcntl(file, F_SETLK, &fl)); in main()
118 if (fcntl(file, F_SETLK, &fl) < 0) in setup()
Dfcntl13.c69 if (fcntl(1, F_SETLK, (void *)-1) != -1) { in main()
104 if (fcntl(1, F_SETLK, &flock) != -1) in main()
Dfcntl14.c706 if ((rc = fcntl(fd, F_SETLK, &flock)) < 0) { in dochild()
798 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
812 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
871 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
1029 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()
1068 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()
1123 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()
Dfcntl09.c159 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
180 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
Dfcntl16.c465 if ((fcntl(fd, F_SETLK, thislock)) < 0) { in run_test()
479 if ((fcntl(fd, F_SETLK, thislock)) < 0) { in run_test()
550 if ((fcntl(fd, F_SETLK, thislock)) < 0) { in run_test()
564 if ((fcntl(fd, F_SETLK, thislock)) < 0) { in run_test()
Dfcntl17.c190 if (fcntl(file_fd, F_SETLK, &lock1) < 0) { in do_child1()
201 fcntl(file_fd, F_SETLK, &unlock); in do_child1()
222 if (fcntl(file_fd, F_SETLK, &lock2) < 0) { in do_child2()
260 if (fcntl(file_fd, F_SETLK, &lock3) < 0) { in do_child3()
/external/strace/xlat/
Dfcntlcmds.h67 #if defined(F_SETLK) || (defined(HAVE_DECL_F_SETLK) && HAVE_DECL_F_SETLK)
69 static_assert((F_SETLK) == (8), "F_SETLK != 8");
72 # define F_SETLK 8
82 #if defined(F_SETLK) || (defined(HAVE_DECL_F_SETLK) && HAVE_DECL_F_SETLK)
84 static_assert((F_SETLK) == (6), "F_SETLK != 6");
87 # define F_SETLK 6
414 XLAT(F_SETLK),
417 XLAT(F_SETLK),
Dfcntlcmds.in17 F_SETLK 8
20 F_SETLK 6
/external/clang/test/Sema/
Dwarn-type-safety.c123 #define F_SETLK 20 macro
128 …tic const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SETLK;
135 fcntl(0, F_SETLK, f); // no-warning in test_argument_with_type_tag()
137 …fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag()
142 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion()
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c69 cmd = F_SETLK; in file_lock()
102 if (cmd == F_SETLK) in file_lock()
141 cmd = F_SETLK; in record_lock()
174 if (cmd == F_SETLK) in record_lock()
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h11 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK)
13 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK)
15 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK)
/external/ppp/pppd/plugins/radius/
Dlock.c27 res = fcntl(fd, F_SETLK, &fl); in do_lock_exclusive()
45 return fcntl(fd, F_SETLK, &fl); in do_unlock()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D11-1.c48 if (fcntl(fd, F_SETLK, &fl) == -1) { in child()
82 if (fcntl(fd, F_SETLK, &fl) == -1) { in main()
/external/toybox/toys/pending/
Duserdel.c45 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles()
78 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles()
/external/python/cpython3/Modules/
Dfcntlmodule.c321 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock_impl()
420 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf_impl()
492 #ifdef F_SETLK in all_ins()
493 if (PyModule_AddIntMacro(m, F_SETLK)) return -1; in all_ins()
/external/python/cpython2/Modules/
Dfcntlmodule.c288 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock()
369 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf()
477 #ifdef F_SETLK in all_ins()
478 if (ins(d, "F_SETLK", (long)F_SETLK)) return -1; in all_ins()
/external/toybox/lib/
Dpassword.c137 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
182 fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
/external/kernel-headers/original/uapi/asm-mips/asm/
Dfcntl.h41 #define F_SETLK 6 macro
/external/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc6.c363 lock_mode = F_SETLK; /* return if lock fails */ in lock_file()
405 if (fcntl(fd, F_SETLK, flock_ptr) < 0) in unlock_file()
/external/strace/tests-m32/
Dfcntl-common.c108 TEST_FLOCK_EINVAL(F_SETLK); in test_flock()
116 long rc = invoke_test_syscall(0, F_SETLK, fl); in test_flock()

1234