/foundation/communication/netstack/frameworks/native/tls_socket/src/ |
D | tls_utils.cpp | 35 char tmpPath[PATH_MAX] = {0}; in CheckFilePath() local 36 if (!realpath(static_cast<const char *>(fileName.c_str()), tmpPath)) { in CheckFilePath() 40 if (!IsValidPath(tmpPath)) { in CheckFilePath() 44 realPath = tmpPath; in CheckFilePath()
|
/foundation/multimedia/histreamer/engine/foundation/osal/utils/ |
D | util.cpp | 61 char tmpPath[PATH_MAX] = {0}; in ConvertFullPath() local 62 if (realpath(partialPath.c_str(), tmpPath) == nullptr) { in ConvertFullPath() 65 if (access(tmpPath, F_OK) || access(tmpPath, R_OK)) { in ConvertFullPath() 68 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/multimedia/image_framework/mock/native/src/ |
D | directory_ex.cpp | 109 char tmpPath[PATH_MAX] = {0}; in PathToRealPath() local 112 if (_fullpath(tmpPath, path.c_str(), PATH_MAX) == NULL) { in PathToRealPath() 116 if (realpath(path.c_str(), tmpPath) == nullptr) { in PathToRealPath() 121 realPath = tmpPath; in PathToRealPath()
|
/foundation/resourceschedule/work_scheduler/utils/native/src/ |
D | work_sched_utils.cpp | 88 char tmpPath[PATH_MAX] = {0}; in ConvertFullPath() local 89 if (realpath(partialPath.c_str(), tmpPath) == nullptr) { in ConvertFullPath() 92 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/ |
D | backup_manager.cpp | 177 auto tmpPath = path + BACKUP_TMP_POSTFIX; in SaveData() local 179 CopyFile(tmpPath, path); in SaveData() 180 RemoveFile(tmpPath.c_str()); in SaveData() 189 auto tmpPath = path + BACKUP_TMP_POSTFIX; in RollBackData() local 192 RemoveFile(tmpPath.c_str()); in RollBackData() 199 auto tmpPath = path + BACKUP_TMP_POSTFIX; in CleanData() local 200 RemoveFile(tmpPath.c_str()); in CleanData()
|
/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
D | tools_op_restore_async.cpp | 87 string tmpPath; in OnFileReady() local 90 tmpPath = string(BConstants::BACKUP_TOOL_INSTALL_DIR) + fileInfo.owner + ".hap"; in OnFileReady() 92 … tmpPath = string(BConstants::BACKUP_TOOL_RECEIVE_DIR) + fileInfo.owner + "/" + fileInfo.fileName; in OnFileReady() 94 if (access(tmpPath.data(), F_OK) != 0) { in OnFileReady() 97 BExcepUltils::VerifyPath(tmpPath, false); in OnFileReady() 98 UniqueFd fdLocal(open(tmpPath.data(), O_RDONLY)); in OnFileReady()
|
D | tools_op_restore.cpp | 137 string tmpPath; in OnFileReady() local 140 tmpPath = string(BConstants::BACKUP_TOOL_INSTALL_DIR) + fileInfo.owner + ".hap"; in OnFileReady() 142 … tmpPath = string(BConstants::BACKUP_TOOL_RECEIVE_DIR) + fileInfo.owner + "/" + fileInfo.fileName; in OnFileReady() 144 if (access(tmpPath.data(), F_OK) != 0) { in OnFileReady() 147 UniqueFd fdLocal(open(tmpPath.data(), O_RDONLY)); in OnFileReady()
|
D | tools_op_backup.cpp | 130 string tmpPath = string(BConstants::BACKUP_TOOL_RECEIVE_DIR) + fileInfo.owner; in OnFileReady() local 131 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 137 …UniqueFd fdLocal(open((tmpPath + "/" + fileInfo.fileName).data(), O_WRONLY | O_CREAT | O_TRUNC, S_… in OnFileReady()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
D | directory_ex.cpp | 306 char tmpPath[PATH_MAX] = {0}; in PathToRealPath() local 308 auto ret = _fullpath(tmpPath, path.c_str(), sizeof(tmpPath)); in PathToRealPath() 310 auto ret = realpath(path.c_str(), tmpPath); in PathToRealPath() 317 realPath = tmpPath; in PathToRealPath()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
D | traffic_manager.cpp | 74 char tmpPath[PATH_MAX] = {0}; in GetInterfaceTrafficByType() local 75 if (!realpath(trafficPath.c_str(), tmpPath)) { in GetInterfaceTrafficByType() 80 int fd = open(tmpPath, 0, 0666); in GetInterfaceTrafficByType()
|
D | interface_manager.cpp | 63 char tmpPath[PATH_MAX] = {0}; in CheckFilePath() local 64 if (!realpath(fileName.c_str(), tmpPath)) { in CheckFilePath() 68 realPath = tmpPath; in CheckFilePath()
|
/foundation/multimedia/player_framework/services/utils/ |
D | uri_helper.cpp | 44 char tmpPath[PATH_MAX] = {0}; in PathToRealFileUrl() local 45 char *pathAddr = realpath(path.data(), tmpPath); in PathToRealFileUrl() 49 int ret = access(tmpPath, F_OK); in PathToRealFileUrl() 51 "check realpath (%{private}s) error", tmpPath); in PathToRealFileUrl() 53 realPath = std::string("file://") + tmpPath; in PathToRealFileUrl()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
D | js_module_reader.cpp | 165 std::string tmpPath = inputPath.substr(inputPath.find_first_of("/") + 1); in GetPresetAppHapPath() local 166 const std::string sharedBundleName = tmpPath.substr(0, tmpPath.find_first_of("/")); in GetPresetAppHapPath()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
D | image_utils.cpp | 188 char tmpPath[PATH_MAX] = { 0 }; in PathToRealPath() local 191 if (_fullpath(tmpPath, path.c_str(), path.length()) == nullptr) { in PathToRealPath() 195 if (realpath(path.c_str(), tmpPath) == nullptr) { in PathToRealPath() 201 realPath = tmpPath; in PathToRealPath()
|
/foundation/resourceschedule/device_standby/utils/policy/src/ |
D | json_utils.cpp | 192 char tmpPath[PATH_MAX] = {0}; in GetRealPath() local 193 if (partialPath.size() > PATH_MAX || !realpath(partialPath.c_str(), tmpPath)) { in GetRealPath() 196 fullPath = tmpPath; in GetRealPath()
|
/foundation/window/window_manager/dmserver/src/ |
D | display_manager_config.cpp | 70 char tmpPath[PATH_MAX + 1] = { 0 }; in GetConfigPath() local 71 …th || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) { in GetConfigPath() 75 return std::string(tmpPath); in GetConfigPath()
|
/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/src/ |
D | cgroup_action.cpp | 211 char tmpPath[PATH_MAX + 1] = {0}; in ParseConfigFileToJsonObj() local 213 !realpath(configFilePath, tmpPath)) { in ParseConfigFileToJsonObj() 217 std::string realConfigFile(tmpPath); in ParseConfigFileToJsonObj()
|
/foundation/resourceschedule/background_task_mgr/services/common/src/ |
D | data_storage_helper.cpp | 161 char tmpPath[PATH_MAX] = {0}; in ConvertFullPath() local 162 if (realpath(partialPath.c_str(), tmpPath) == nullptr) { in ConvertFullPath() 165 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
D | net_stats_database_helper.cpp | 42 char tmpPath[PATH_MAX] = {0}; in CheckFilePath() local 45 if (!realpath(dir.c_str(), tmpPath)) { in CheckFilePath() 49 if (strcmp(tmpPath, dir.c_str()) != 0) { in CheckFilePath() 50 …LOG_E("file name is illegal fileName: %{public}s, tmpPath: %{public}s", fileName.c_str(), tmpPath); in CheckFilePath()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
D | rmdirent.cpp | 146 auto cbExec = [tmpPath = string(path.get())]() -> NError { in Async() 147 return RmDirent(tmpPath); in Async()
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | screen_scene_config.cpp | 85 char tmpPath[PATH_MAX + 1] = { 0 }; in GetConfigPath() local 86 …th || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) { in GetConfigPath() 90 return std::string(tmpPath); in GetConfigPath()
|
D | window_scene_config.cpp | 102 char tmpPath[PATH_MAX + 1] = { 0 }; in GetConfigPath() local 103 …th || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) { in GetConfigPath() 107 return std::string(tmpPath); in GetConfigPath()
|
/foundation/arkui/napi/module_manager/ |
D | native_module_manager.cpp | 380 std::string tmpPath = ""; in SetAppLibPath() local 385 tmpPath += appLibPath[i]; in SetAppLibPath() 386 tmpPath += ":"; in SetAppLibPath() 388 if (tmpPath.back() == ':') { in SetAppLibPath() 389 tmpPath.pop_back(); in SetAppLibPath() 392 err = strcpy_s(tmp, NAPI_PATH_MAX, tmpPath.c_str()); in SetAppLibPath()
|
/foundation/window/window_manager/wmserver/src/ |
D | window_manager_config.cpp | 97 char tmpPath[PATH_MAX + 1] = { 0 }; in GetConfigPath() local 98 …th || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) { in GetConfigPath() 102 return std::string(tmpPath); in GetConfigPath()
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/ |
D | net_policy_file.cpp | 33 char tmpPath[PATH_MAX] = {0}; in CheckFilePath() local 34 if (!realpath(fileName.c_str(), tmpPath)) { in CheckFilePath() 38 if (strcmp(tmpPath, POLICY_FILE_NAME) != 0) { in CheckFilePath() 42 realPath = tmpPath; in CheckFilePath()
|