Lines Matching defs:path
236 HILOG_ERROR("get native module path failed");
462 // Performs a namespace check on the full path passed directly or the full path converted after setting rpath.
475 // Performs a namespace check on the full path passed directly or the full path converted after setting rpath.
493 HILOG_DEBUG("end. moduleName: %{public}s, path: %{public}s", moduleName.c_str(), lib_ld_path);
526 HILOG_DEBUG("path: %{public}s", appLibPathMap_[moduleName]);
537 NativeModule* NativeModuleManager::LoadNativeModule(const char* moduleName, const char* path, bool isAppModule,
552 HILOG_DEBUG("moduleName is %{public}s, path is %{public}s, relativePath is %{public}s",
553 moduleName, path, relativePath);
566 if (path != nullptr) {
567 if (IsExistedPath(path)) {
568 strModule = path;
573 path = "default";
590 if (!GetNativeModulePath(strCutName.c_str(), path, relativePath, isAppModule, nativeModulePath, NAPI_PATH_MAX)) {
591 errInfo = "failed to get native file path of module " + std::string(moduleName);
601 if (path && IsExistedPath(path)) {
602 prefixTmp = path;
609 errInfo = "failed to get native file path of module " + std::string(moduleName);
642 nativeModule = FindNativeModuleByDisk(strCutName.c_str(), path, relativePath, internal, isAppModule,
681 bool NativeModuleManager::GetNativeModulePath(const char* moduleName, const char* path,
727 if (isAppModule && IsExistedPath(path)) {
729 prefix = appLibPathMap_[path];
761 if (!isAppModule || !IsExistedPath(path)) {
827 if (!isAppModule || !IsExistedPath(path)) {
863 LIBHANDLE NativeModuleManager::LoadModuleLibrary(std::string& moduleKey, const char* path,
866 if (strlen(path) == 0) {
867 errInfo += "load module " + moduleKey + " failed. module path is empty";
874 HILOG_DEBUG("path: %{public}s, pathKey: %{public}s, isAppModule: %{public}d", path, pathKey, isAppModule);
876 StartTrace(HITRACE_TAG_ACE, path);
879 if (CheckModuleExist(path) == false) {
883 lib = LoadLibrary(path);
890 if (CheckModuleExist(path) == false) {
895 lib = dlopen(path, RTLD_LAZY);
907 lib = dlopen_ns(&ns, path, RTLD_LAZY);
908 } else if (access(path, F_OK) == 0) {
909 lib = dlopen(path, RTLD_LAZY);
914 "Error loading path " + std::string(path) + ":No such file or directory";
982 NativeModule* NativeModuleManager::FindNativeModuleByDisk(const char* moduleName, const char* path,
995 moduleKey = path;
1000 // load primary module path first
1002 HILOG_DEBUG("moduleName is %{public}s. get primary module path is %{public}s", moduleName, loadPath);
1005 LIBHANDLE lib = LoadModuleLibrary(moduleKey, loadPath, path, isAppModule, errInfo, errReason0);
1009 HILOG_DEBUG("try to load secondary module path: %{public}s", loadPath);
1011 lib = LoadModuleLibrary(moduleKey, loadPath, path, isAppModule, errInfo, errReason1);
1027 HILOG_DEBUG("try to load abc module path: %{public}s", loadPath);
1212 HILOG_WARN("moduleName '%{public}s' is in different path", moduleName);