Lines Matching refs:origName
267 static void* loadAsCopy(const char *origName, std::string newName) { in loadAsCopy() argument
270 int fd = TEMP_FAILURE_RETRY(open(origName, O_RDONLY | O_CLOEXEC)); in loadAsCopy()
272 ALOGE("Unable to open original file %s: %s", origName, strerror(errno)); in loadAsCopy()
284 int r = copyFile(newName.c_str(), origName); in loadAsCopy()
286 ALOGE("Could not create copy %s -> %s", origName, newName.c_str()); in loadAsCopy()
298 void* SharedLibraryUtils::loadSOHelper(const char *origName, const char *cacheDir, in loadSOHelper() argument
312 if (access(origName, F_OK) != 0) { in loadSOHelper()
318 if (LoadedLibraries.find(origName) == LoadedLibraries.end()) { in loadSOHelper()
322 loaded = dlopen(origName, RTLD_NOW | RTLD_LOCAL); in loadSOHelper()
324 LoadedLibraries.insert(origName); in loadSOHelper()
355 loaded = loadAsCopy(origName, newName); in loadSOHelper()