Searched refs:flock (Results 1 – 7 of 7) 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/base/cmds/idmap/ |
D | scan.cpp | 48 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList() 54 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList() 65 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
|
D | create.cpp | 44 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX)) != 0) { in open_idmap()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 117 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile() 143 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile() 986 if (flock(out_fd.get(), LOCK_EX | LOCK_NB) != 0) { in copy_system_profile() 1015 if (flock(out_fd.get(), LOCK_UN) != 0) { in copy_system_profile() 2166 if (flock(out_oat_fd.get(), LOCK_EX | LOCK_NB) != 0) { in dexopt()
|
D | InstalldNativeService.cpp | 2286 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in delete_stale_idmap() 2406 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in idmap()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 712 if (TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_SH)) != 0) { in addSystemOverlays() 750 TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_UN)); in addSystemOverlays()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 253 final FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true /*shared*/)) { in loadStaticRuntimeOverlays()
|