Home
last modified time | relevance | path

Searched refs:F_UNLCK (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl20.c204 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
209 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
221 case F_UNLCK: in str_type()
222 return ("F_UNLCK"); in str_type()
331 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main()
347 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, (pid_t) 0); in main()
374 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main()
390 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, (pid_t) 0); in main()
417 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main()
433 compare_lock(&tl, (short)F_UNLCK, (shor in main()
[all...]
H A Dfcntl19.c205 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
210 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
222 case F_UNLCK: in str_type()
223 return ("F_UNLCK"); in str_type()
332 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main()
348 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, (pid_t) 0); in main()
375 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main()
391 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, (pid_t) 0); in main()
419 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main()
435 compare_lock(&tl, (short)F_UNLCK, (shor in main()
[all...]
H A Dfcntl21.c212 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file()
217 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
229 case F_UNLCK: in str_type()
230 return ("F_UNLCK"); in str_type()
424 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
474 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
524 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
574 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
630 compare_lock(&tl, (short)F_UNLCK, (short)0, 20, 0, 0); in main()
681 compare_lock(&tl, (short)F_UNLCK, (shor in main()
[all...]
H A Dfcntl11.c181 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) in unlock_file()
184 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
196 case F_UNLCK: in str_type()
197 return ("F_UNLCK"); in str_type()
305 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
343 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
381 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
419 compare_lock(&tl, (short)F_UNLCK, (short)0, 15, 0, 0); in main()
463 compare_lock(&tl, (short)F_UNLCK, (short)0, 20, 0, 0); in main()
502 compare_lock(&tl, (short)F_UNLCK, (shor in main()
[all...]
H A Dfcntl06.c104 if (do_lock(F_RSETLK, F_UNLCK, 0, 5, 5) == -1) in main()
151 if (do_lock(F_RSETLK, (short)F_UNLCK, (short)0, 0, 0) == -1) { in unlock_file()
H A Dfcntl36.c92 lck.l_type = F_UNLCK; in fn_ofd_w()
131 lck.l_type = F_UNLCK; in fn_posix_w()
196 lck.l_type = F_UNLCK; in fn_ofd_r()
256 lck.l_type = F_UNLCK; in fn_posix_r()
H A Dfcntl05.c23 * returns F_UNLCK in the l_type field of lock and leaves the other field
39 /* F_GETLK will change flock.l_type to F_UNLCK, so need to reset */ in verify_fcntl()
43 TST_EXP_EQ_LI(flocks.l_type, F_UNLCK); in verify_fcntl()
H A Dfcntl14.c623 * structure will return with l_type changed to F_UNLCK. If it will in dochild()
634 if (flock.l_type != F_UNLCK) { in dochild()
638 flock.l_type, F_UNLCK); in dochild()
726 (void)fcntl(fd, F_UNLCK, &flock); in dochild()
867 flock.l_type = F_UNLCK; in run_test()
1119 flock.l_type = F_UNLCK; in main()
H A Dfcntl23.c151 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
154 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
H A Dfcntl25.c162 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
165 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
H A Dfcntl26.c162 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
165 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
H A Dfcntl24.c161 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
164 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
H A Dfcntl10.c157 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname in main()
174 flocks.l_type = F_UNLCK; in main()
176 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname in main()
183 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s", in main()
189 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = F_UNLCK returned %ld", in main()
H A Dfcntl09.c176 flocks.l_type = F_UNLCK; 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()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dlockf.c19 if (l.l_type == F_UNLCK || l.l_pid == getpid()) in lockf()
24 l.l_type = F_UNLCK; in lockf()
/third_party/musl/src/misc/
H A Dlockf.c20 if (l.l_type == F_UNLCK || l.l_pid == getpid()) in lockf()
25 l.l_type = F_UNLCK; in lockf()
/third_party/ltp/testcases/network/nfs/nfslock01/
H A Dnfs_flock.h21 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK)
27 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLKW)
H A Dnfs_flock_func.c38 if (lock.l_type == F_UNLCK) in lock_test()
/third_party/ltp/testcases/kernel/fs/doio/
H A Dfile_lock.c78 flocks.l_type = F_UNLCK; in file_lock()
150 flocks.l_type = F_UNLCK; in record_lock()
/third_party/python/Modules/
H A Dfcntlmodule.c309 l.l_type = F_UNLCK; in fcntl_flock_impl()
390 l.l_type = F_UNLCK; in fcntl_lockf_impl()
534 #ifdef F_UNLCK in all_ins()
535 if (PyModule_AddIntMacro(m, F_UNLCK)) return -1; in all_ins()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D11-1.c43 if (fl.l_type == F_UNLCK) { in child()
44 printf("Child found lock is F_UNLCK, should be F_WRLCK\n"); in child()
/third_party/musl/Benchmark/musl/
H A Dlibc_fcntl.cpp86 fdLock.l_type = F_UNLCK; in Bm_function_Fcntl_setlkw()
134 fdLock.l_type = F_UNLCK; in Bm_function_Fcntl_setlk()
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/b32/
H A Dmod.rs184 pub const F_UNLCK: ::c_int = 3; consts
230 pub const F_UNLCK: ::c_int = 2; consts
/third_party/gn/src/base/files/
H A Dfile_posix.cc53 lock.l_type = do_lock ? F_WRLCK : F_UNLCK; in CallFcntlFlock()
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h57 #define F_UNLCK 2 macro

Completed in 10 milliseconds

1234