Home
last modified time | relevance | path

Searched refs:tmpPath (Results 1 – 25 of 44) sorted by relevance

12

/foundation/communication/netstack/frameworks/native/tls_socket/src/
Dtls_utils.cpp35 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/
Dutil.cpp61 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/
Ddirectory_ex.cpp109 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/
Dwork_sched_utils.cpp88 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/
Dbackup_manager.cpp177 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/
Dtools_op_restore_async.cpp87 string tmpPath; in OnFileReady() local
90 tmpPath = string(BConstants::BACKUP_TOOL_INSTALL_DIR) + fileInfo.owner + ".hap"; in OnFileReady()
92tmpPath = 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()
Dtools_op_restore.cpp137 string tmpPath; in OnFileReady() local
140 tmpPath = string(BConstants::BACKUP_TOOL_INSTALL_DIR) + fileInfo.owner + ".hap"; in OnFileReady()
142tmpPath = 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()
Dtools_op_backup.cpp130 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/
Ddirectory_ex.cpp306 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/
Dtraffic_manager.cpp74 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()
Dinterface_manager.cpp63 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/
Duri_helper.cpp44 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/
Djs_module_reader.cpp165 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/
Dimage_utils.cpp188 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/
Djson_utils.cpp192 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/
Ddisplay_manager_config.cpp70 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/
Dcgroup_action.cpp211 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/
Ddata_storage_helper.cpp161 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/
Dnet_stats_database_helper.cpp42 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/
Drmdirent.cpp146 auto cbExec = [tmpPath = string(path.get())]() -> NError { in Async()
147 return RmDirent(tmpPath); in Async()
/foundation/window/window_manager/window_scene/session_manager/src/
Dscreen_scene_config.cpp85 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()
Dwindow_scene_config.cpp102 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/
Dnative_module_manager.cpp380 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/
Dwindow_manager_config.cpp97 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/
Dnet_policy_file.cpp33 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()

12