Home
last modified time | relevance | path

Searched refs:F_SETLK (Results 1 - 25 of 112) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A 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, (shor in main()
[all...]
H A 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, (shor in main()
[all...]
H A Dfcntl15.c76 SAFE_FCNTL(fd, F_SETLK, &lock_two); in lock_region_two()
89 if (!fcntl(fd, F_SETLK, &lock_one)) in do_test()
94 if (!fcntl(fd, F_SETLK, &lock_two)) in do_test()
101 if (fcntl(fd, F_SETLK, &lock_one)) in do_test()
106 ret = fcntl(fd, F_SETLK, &lock_two); in do_test()
144 SAFE_FCNTL(fd[0], F_SETLK, &lock_one); in run_test()
148 SAFE_FCNTL(fd[1], F_SETLK, &lock_two); in run_test()
H A 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, (shor in main()
[all...]
H A 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, (shor in main()
[all...]
H A Dfcntl13.c15 * - EINVAL when cmd argument is F_SETLK and flock.l_whence is not equal to
34 {1, F_SETLK, NULL, "F_SETLK", EFAULT},
36 {1, F_SETLK, &flock, "F_SETLK", EINVAL},
H A Dfcntl22.c66 TEST(fcntl(file, F_SETLK, &fl)); in main()
118 if (fcntl(file, F_SETLK, &fl) < 0) in setup()
H A Dfcntl09.c42 * TEST TITLE : Basic test for fcntl(2) using F_SETLK argument.
157 * Call fcntl(2) with F_SETLK argument on fname in main()
159 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
164 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s Failed, errno=%d : %s", in main()
170 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s returned %ld", in main()
178 * Call fcntl(2) with F_SETLK argument on fname in main()
180 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
185 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s", in main()
190 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = F_UNLCK returned %ld", in main()
H A 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()
H A 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()
H A 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()
/third_party/ltp/testcases/kernel/fs/doio/
H A 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()
/third_party/ltp/testcases/network/nfs/nfslock01/
H A Dnfs_flock.h17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK)
19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK)
21 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK)
/third_party/musl/arch/generic/bits/
H A Dfcntl.h35 #define F_SETLK 13 macro
39 #define F_SETLK 6 macro
/third_party/musl/libc-test/src/functional/
H A Dfcntl.c27 TESTE(fcntl(fd, F_SETLK, &fl)==0); in main()
32 _exit(fcntl(fd, F_SETLK, &fl)==0 || in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D11-1.c48 if (fcntl(fd, F_SETLK, &fl) == -1) { in child()
82 if (fcntl(fd, F_SETLK, &fl) == -1) { in main()
/third_party/toybox/toys/pending/
H A Duserdel.c46 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles()
77 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles() local
/third_party/toybox/lib/
H A Dpassword.c138 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
183 fcntl(fileno(exfp), F_SETLK, &lock); in update_password() local
/third_party/python/Modules/
H A Dfcntlmodule.c322 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock_impl()
426 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf_impl()
498 #ifdef F_SETLK in all_ins()
499 if (PyModule_AddIntMacro(m, F_SETLK)) return -1; in all_ins()
/third_party/musl/porting/liteos_m/kernel/include/bits/
H A Dfcntl.h34 #define F_SETLK 13 macro
/third_party/musl/porting/liteos_a/kernel/include/bits/
H A Dfcntl.h39 #define F_SETLK 13 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
H A Dfcntl.h34 #define F_SETLK 13 macro
/third_party/musl/porting/liteos_m/user/include/bits/
H A Dfcntl.h34 #define F_SETLK 13 macro
/third_party/musl/porting/uniproton/kernel/include/bits/
H A Dfcntl.h34 #define F_SETLK 13 macro
/third_party/musl/arch/aarch64/bits/
H A Dfcntl.h28 #define F_SETLK 6 macro

Completed in 10 milliseconds

12345