Searched refs:flock (Results 1 – 5 of 5) sorted by relevance
/frameworks/compile/libbcc/lib/ |
D | FileBase.cpp | 37 int flock(int fd, int operation) { in flock() function 163 if (::flock(mFD, lock_operation) == 0) { in lock() 212 if (::flock(mFD, LOCK_UN) == 0) { in unlock()
|
/frameworks/libs/binary_translation/kernel_api/riscv64/ |
D | guest_types.h | 52 using Guest_flock = struct flock;
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | file_test.cc | 655 EXPECT_EQ(flock(f.fd(), LOCK_SH), 0); in TEST() 656 EXPECT_EQ(flock(f.fd(), LOCK_EX), 0); in TEST() 657 EXPECT_EQ(flock(f.fd(), LOCK_UN), 0); in TEST()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 198 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile() 224 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile() 865 if (flock(out_fd.get(), LOCK_EX | LOCK_NB) != 0) { in copy_system_profile() 897 if (flock(out_fd.get(), LOCK_UN) != 0) { in copy_system_profile() 1986 if (flock(out_oat.fd(), LOCK_EX | LOCK_NB) != 0) { in dexopt()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 713 if (TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_SH)) != 0) { in addSystemOverlays() 751 TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_UN)); in addSystemOverlays()
|