Lines Matching refs:origName
255 static void* loadAsCopy(const char *origName, std::string newName) { in loadAsCopy() argument
258 int fd = TEMP_FAILURE_RETRY(open(origName, O_RDONLY | O_CLOEXEC)); in loadAsCopy()
260 ALOGE("Unable to open original file %s: %s", origName, strerror(errno)); in loadAsCopy()
272 int r = copyFile(newName.c_str(), origName); in loadAsCopy()
274 ALOGE("Could not create copy %s -> %s", origName, newName.c_str()); in loadAsCopy()
286 void* SharedLibraryUtils::loadSOHelper(const char *origName, const char *cacheDir, in loadSOHelper() argument
299 if (access(origName, F_OK) != 0) { in loadSOHelper()
304 if (LoadedLibraries.find(origName) == LoadedLibraries.end()) { in loadSOHelper()
308 loaded = dlopen(origName, RTLD_NOW | RTLD_LOCAL); in loadSOHelper()
310 LoadedLibraries.insert(origName); in loadSOHelper()
341 loaded = loadAsCopy(origName, newName); in loadSOHelper()