Home
last modified time | relevance | path

Searched refs:resolvedPath (Results 1 - 24 of 24) sorted by relevance

/foundation/filemanagement/app_file_service/utils/src/b_tarball/
H A Db_tarball_factory.cpp48 auto resolvedPath = BExcepUltils::Canonicalize(root); in UntarFort() local
50 resolvedPath += UNTAT_ROOT; in UntarFort()
52 if (string_view(resolvedPath) != root) { in UntarFort()
74 auto resolvedPath = make_unique<char[]>(PATH_MAX); in TarFilter() local
75 if (!realpath(root.data(), resolvedPath.get()) || (string_view(resolvedPath.get()) != root)) { in TarFilter()
126 auto resolvedPath = make_unique<char[]>(PATH_MAX); in GetTarballDirAndName() local
127 if (!realpath(tarballDir.data(), resolvedPath.get())) { in GetTarballDirAndName()
130 if (auto canonicalizedTarballDir = string_view(resolvedPath.get()); canonicalizedTarballDir != tarballDir) { in GetTarballDirAndName()
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/io/dev/
H A DFileMonitor.cpp63 char resolvedPath[_MAX_PATH] = {}; in resolveAbsolutePath() local
64 auto ret = GetFullPathNameA(aPath.c_str(), sizeof(resolvedPath), resolvedPath, nullptr); in resolveAbsolutePath()
65 if (ret < sizeof(resolvedPath)) { in resolveAbsolutePath()
67 HANDLE handle = FindFirstFileA(resolvedPath, &data); in resolveAbsolutePath()
69 absolutePath = resolvedPath; in resolveAbsolutePath()
74 char resolvedPath[_MAX_PATH] = {}; in resolveAbsolutePath() local
75 if (_fullpath(resolvedPath, aPath.c_str(), _MAX_PATH) != nullptr) { in resolveAbsolutePath()
77 auto handle = opendir(resolvedPath); in resolveAbsolutePath()
80 absolutePath = resolvedPath; in resolveAbsolutePath()
91 char resolvedPath[PATH_MAX]; resolveAbsolutePath() local
[all...]
/foundation/arkui/napi/utils/platform/windows/
H A Dfile.cpp23 bool RealPath(const char *path, char *resolvedPath, size_t bufferSize) in RealPath() argument
25 if (path == nullptr || resolvedPath == nullptr) { in RealPath()
39 if (strcpy_s(resolvedPath, bufferSize - 1, buffer) != 0) { in RealPath()
/foundation/arkui/napi/utils/platform/unix_like/
H A Dfile.cpp23 bool RealPath(const char *path, char *resolvedPath, size_t bufferSize) in RealPath() argument
25 if (path == nullptr || resolvedPath == nullptr) { in RealPath()
39 if (strcpy_s(resolvedPath, bufferSize - 1, buffer) != 0) { in RealPath()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dstd_directory.cpp259 char resolvedPath[_MAX_PATH] = {}; in ResolveAbsolutePath() local
260 if (_fullpath(resolvedPath, string(path).c_str(), _MAX_PATH) != nullptr) { in ResolveAbsolutePath()
262 auto handle = opendir(resolvedPath); in ResolveAbsolutePath()
265 absolutePath = resolvedPath; in ResolveAbsolutePath()
268 auto handle = fopen(resolvedPath, "r"); in ResolveAbsolutePath()
271 absolutePath = resolvedPath; in ResolveAbsolutePath()
276 char resolvedPath[PATH_MAX]; in ResolveAbsolutePath() local
277 if (realpath(string(path).c_str(), resolvedPath) != nullptr) { in ResolveAbsolutePath()
278 absolutePath = resolvedPath; in ResolveAbsolutePath()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/softbus_adapter/allconnectmgr/
H A Ddsched_all_connect_manager.cpp92 std::string resolvedPath = "/system/lib64/libcfwk_allconnect_client.z.so"; in GetServiceCollaborationManagerProxy() local
94 std::string resolvedPath = "/system/lib/libcfwk_allconnect_client.z.so"; in GetServiceCollaborationManagerProxy() local
97 if (resolvedPath.length() > PATH_MAX || realpath(resolvedPath.c_str(), path) == nullptr) { in GetServiceCollaborationManagerProxy()
98 HILOGE("Check all connect so real path failed, resolvedPath [%{public}s].", in GetServiceCollaborationManagerProxy()
99 GetAnonymStr(resolvedPath).c_str()); in GetServiceCollaborationManagerProxy()
104 dllHandle_ = dlopen(resolvedPath.c_str(), RTLD_LAZY); in GetServiceCollaborationManagerProxy()
106 HILOGE("Open dms interactive adapter shared object fail, resolvedPath [%{public}s].", in GetServiceCollaborationManagerProxy()
107 GetAnonymStr(resolvedPath).c_str()); in GetServiceCollaborationManagerProxy()
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_file.cpp101 auto resolvedPath = make_unique<char[]>(PATH_MAX + 1); // 1: size for '\0' in CopyFile() local
102 if (!realpath(from.data(), resolvedPath.get())) { in CopyFile()
106 string oldPath(resolvedPath.get()); in CopyFile()
117 if (!realpath(dirname(dir.get()), resolvedPath.get())) { in CopyFile()
121 string newPath(resolvedPath.get()); in CopyFile()
/foundation/filemanagement/dfs_service/utils/load/src/
H A Dplugin_loader.cpp65 char resolvedPath[PATH_MAX] = {'\0'}; in LoadCloudKitPlugin() local
66 if (realpath(pluginFilePath.c_str(), resolvedPath) == nullptr) { in LoadCloudKitPlugin()
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dfile_path_utils.cpp28 char* realpath(const char* path, char* resolvedPath) in realpath() argument
33 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath()
36 return resolvedPath; in realpath()
415 char resolvedPath[PATH_MAX + 1] = { 0 }; in MakeFilePath() local
416 if (realpath(path.c_str(), resolvedPath) != nullptr) { in MakeFilePath()
417 fileName = resolvedPath; in MakeFilePath()
434 if (realpath(path.c_str(), resolvedPath) == nullptr) { in MakeFilePath()
438 fileName = resolvedPath; in MakeFilePath()
/foundation/arkui/napi/utils/
H A Dfile.h24 NAPI_EXPORT bool RealPath(const char *path, char *resolvedPath, size_t bufferSize);
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/
H A Dprocess_group_util.cpp61 char resolvedPath[PATH_MAX] = { 0 }; in GetRealPath() local
62 if (path.size() > PATH_MAX || !realpath(path.c_str(), resolvedPath)) { in GetRealPath()
66 realPath = std::string(resolvedPath); in GetRealPath()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_worker.cpp273 std::string resolvedPath; in GetSafeData() local
274 resolvedPath.reserve(PATH_MAX); in GetSafeData()
275 resolvedPath.resize(PATH_MAX - 1); in GetSafeData()
276 if (realpath(ami.c_str(), &(resolvedPath[0])) == nullptr) { in GetSafeData()
281 int fd = open(resolvedPath.c_str(), O_RDONLY); in GetSafeData()
283 TAG_LOGE(AAFwkTag::JSRUNTIME, "Open file %{private}s caught error: %{public}d", resolvedPath.c_str(), errno); in GetSafeData()
289 TAG_LOGE(AAFwkTag::JSRUNTIME, "Get fstat of file %{private}s caught error: %{public}d", resolvedPath.c_str(), in GetSafeData()
302 auto result = fileMapper->CreateFileMapper(resolvedPath, false, fd, 0, statbuf.st_size, FileMapperType::SAFE_ABC); in GetSafeData()
304 TAG_LOGE(AAFwkTag::JSRUNTIME, "Create file %{private}s mapper failed", resolvedPath.c_str()); in GetSafeData()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/
H A Dkernel_talker.h72 char resolvedPath[PATH_MAX] = {'\0'}; in SetCmd() local
73 char *realPath = realpath(ctrlPath.c_str(), resolvedPath); in SetCmd()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/
H A Dkernel_talker.cpp172 char resolvedPath[PATH_MAX] = {'\0'}; in PollRun() local
173 char *realPath = realpath(ctrlPath.c_str(), resolvedPath); in PollRun()
/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexemgr/src/
H A Dres_sched_exe_mgr.cpp209 char resolvedPath[PATH_MAX] = { 0 }; in GetCgroupFileContent() local
210 if (path.size() > PATH_MAX || !realpath(path.c_str(), resolvedPath)) { in GetCgroupFileContent()
214 auto realPath = std::string(resolvedPath); in GetCgroupFileContent()
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
H A Dkv_store.c40 static int GetResolvedPath(const char* dataPath, const char* key, char* resolvedPath, unsigned int len) in GetResolvedPath() argument
50 if (realpath(keyPath, resolvedPath) != NULL) { in GetResolvedPath()
55 if (strncpy_s(resolvedPath, len, keyPath, strlen(keyPath)) == EOK) { in GetResolvedPath()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/
H A Djsi_module_searcher.cpp28 char* realpath(const char* path, char* resolvedPath) in realpath() argument
33 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath()
36 return resolvedPath; in realpath()
/foundation/filemanagement/dfs_service/utils/cloud_disk/src/
H A Dcloud_file_utils.cpp235 char resolvedPath[PATH_MAX] = {'\0'}; in LocalWriteOpen() local
236 char *realPaths = realpath(realPath.c_str(), resolvedPath); in LocalWriteOpen()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp665 char resolvedPath[PATH_MAX] = { 0 }; in GetRealPath() local
666 if (path.size() > PATH_MAX || !realpath(path.c_str(), resolvedPath)) { in GetRealPath()
670 realPath = std::string(resolvedPath); in GetRealPath()
/foundation/window/window_manager/snapshot/src/
H A Dsnapshot_utils.cpp127 char resolvedPath[PATH_MAX] = { 0 }; in CheckFileNameValid() local
128 char *realPath = realpath(fileDir.c_str(), resolvedPath); in CheckFileNameValid()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/fuse_manager/
H A Dfuse_manager.cpp602 char resolvedPath[PATH_MAX + 1] = {'\0'}; in CloudOpenOnLocal() local
603 char *realPath = realpath(tmpPath.c_str(), resolvedPath); in CloudOpenOnLocal()
1479 char resolvedPath[PATH_MAX] = {'\0'}; in CheckPathForStartFuse() local
1480 char* ret = realpath(path.c_str(), resolvedPath); in CheckPathForStartFuse()
1484 std::string realPath(resolvedPath); in CheckPathForStartFuse()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/
H A Dbluetooth_renderer_sink.cpp366 char resolvedPath[100] = "/vendor/lib64/chipsetsdk/libaudio_bluetooth_hdi_proxy_server.z.so"; in InitAudioManager() local
368 char resolvedPath[100] = "/vendor/lib/chipsetsdk/libaudio_bluetooth_hdi_proxy_server.z.so"; in InitAudioManager() local
372 handle_ = dlopen(resolvedPath, 1); in InitAudioManager()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dmain_thread.cpp2683 char resolvedPath[PATH_MAX] = {0}; in LoadAbilityLibrary() local
2689 if (realpath(fileEntry.c_str(), resolvedPath) == nullptr) { in LoadAbilityLibrary()
2694 handleAbilityLib = dlopen(resolvedPath, RTLD_NOW | RTLD_GLOBAL); in LoadAbilityLibrary()
2697 resolvedPath, dlerror()); in LoadAbilityLibrary()
2746 char resolvedPath[PATH_MAX] = {0}; in LoadAppDetailAbilityLibrary() local
2752 if (realpath(fileEntry.c_str(), resolvedPath) == nullptr) { in LoadAppDetailAbilityLibrary()
2757 handleAbilityLib = dlopen(resolvedPath, RTLD_NOW | RTLD_GLOBAL); in LoadAppDetailAbilityLibrary()
2760 resolvedPath, dlerror()); in LoadAppDetailAbilityLibrary()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Ddistributed_sched_service.cpp453 char resolvedPath[100] = "/system/lib64/libdms_interactive_adapter.z.so"; in GetDmsInteractiveAdapterProxy() local
455 char resolvedPath[100] = "/system/lib/libdms_interactive_adapter.z.so"; in GetDmsInteractiveAdapterProxy() local
460 dllHandle_ = dlopen(resolvedPath, RTLD_LAZY); in GetDmsInteractiveAdapterProxy()
462 HILOGE("Open dms interactive adapter shared object fail, resolvedPath [%{public}s].", resolvedPath); in GetDmsInteractiveAdapterProxy()

Completed in 27 milliseconds