/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl20.c | 204 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 D | fcntl19.c | 205 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 D | fcntl21.c | 212 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 D | fcntl11.c | 181 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 D | fcntl06.c | 104 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 D | fcntl36.c | 92 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 D | fcntl05.c | 23 * 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 D | fcntl14.c | 623 * 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 D | fcntl23.c | 151 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 D | fcntl25.c | 162 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 D | fcntl26.c | 162 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 D | fcntl24.c | 161 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 D | fcntl10.c | 157 * 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 D | fcntl09.c | 176 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 D | lockf.c | 19 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 D | lockf.c | 20 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 D | nfs_flock.h | 21 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK) 27 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLKW)
|
H A D | nfs_flock_func.c | 38 if (lock.l_type == F_UNLCK) in lock_test()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | file_lock.c | 78 flocks.l_type = F_UNLCK; in file_lock() 150 flocks.l_type = F_UNLCK; in record_lock()
|
/third_party/python/Modules/ |
H A D | fcntlmodule.c | 309 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 D | 11-1.c | 43 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 D | libc_fcntl.cpp | 86 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 D | mod.rs | 184 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 D | file_posix.cc | 53 lock.l_type = do_lock ? F_WRLCK : F_UNLCK; in CallFcntlFlock()
|
/third_party/musl/porting/linux/user/include/ |
H A D | fcntl.h | 57 #define F_UNLCK 2 macro
|