Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 5 of 5) sorted by relevance

/frameworks/compile/libbcc/lib/
DFileBase.cpp37 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/
Dguest_types.h52 using Guest_flock = struct flock;
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfile_test.cc655 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/
Ddexopt.cpp198 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/
DAssetManager.cpp713 if (TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_SH)) != 0) { in addSystemOverlays()
751 TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_UN)); in addSystemOverlays()