/foundation/filemanagement/app_file_service/utils/src/b_tarball/ |
H A D | b_tarball_factory.cpp | 48 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 D | FileMonitor.cpp | 63 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 D | file.cpp | 23 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 D | file.cpp | 23 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 D | std_directory.cpp | 259 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 D | dsched_all_connect_manager.cpp | 92 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 D | b_file.cpp | 101 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 D | plugin_loader.cpp | 65 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 D | file_path_utils.cpp | 28 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 D | file.h | 24 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 D | process_group_util.cpp | 61 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 D | js_worker.cpp | 273 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 D | kernel_talker.h | 72 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 D | kernel_talker.cpp | 172 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 D | res_sched_exe_mgr.cpp | 209 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 D | kv_store.c | 40 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 D | jsi_module_searcher.cpp | 28 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 D | cloud_file_utils.cpp | 235 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 D | key_backup.cpp | 665 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 D | snapshot_utils.cpp | 127 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 D | fuse_manager.cpp | 602 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 D | bluetooth_renderer_sink.cpp | 366 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 D | main_thread.cpp | 2683 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 D | distributed_sched_service.cpp | 453 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()
|