/foundation/communication/netstack/frameworks/native/tls_socket/src/ |
H A 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/media_foundation/src/osal/utils/ |
H A D | util.cpp | 71 char tmpPath[PATH_MAX] = {0}; in ConvertFullPath() local 72 if (realpath(partialPath.c_str(), tmpPath) == nullptr) { in ConvertFullPath() 75 if (access(tmpPath, F_OK) || access(tmpPath, R_OK)) { in ConvertFullPath() 78 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/multimedia/media_foundation/engine/foundation/osal/utils/ |
H A 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/filemanagement/storage_service/services/storage_daemon/mtpfs/src/ |
H A D | mtpfs_fuse.cpp | 473 std::string tmpPath(SmtpfsDirName(path)); in GetAttr() 475 const MtpFsTypeDir *content = device_.DirFetchContent(tmpPath); in GetAttr() 511 std::string tmpPath = tmpFilesPool_.MakeTmpPath(std::string(path)); in MkNod() local 512 int rval = ::open(tmpPath.c_str(), O_CREAT | O_WRONLY, mode); in MkNod() 520 rval = device_.FilePush(tmpPath, std::string(path)); in MkNod() 521 ::unlink(tmpPath.c_str()); in MkNod() 601 const std::string tmpPath = tmpFilesPool_.MakeTmpPath(std::string(path)); in Truncate() local 602 int rval = device_.FilePull(std::string(path), tmpPath); in Truncate() 604 ::unlink(tmpPath.c_str()); in Truncate() 608 rval = ::truncate(tmpPath in Truncate() 655 const std::string tmpPath = tmpFilesPool_.MakeTmpPath(std::string(path)); Create() local 680 std::string tmpPath; Open() local 778 const std::string tmpPath = tmpFile->PathTmp(); Release() local [all...] |
/foundation/multimedia/image_framework/mock/native/src/ |
H A 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/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_incremental_backup.cpp | 135 string tmpPath = string(BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR) + fileInfo.owner; in OnFileReady() local 136 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 144 tmpPath = tmpPath + "/" + to_string(iter->lastIncrementalTime); in OnFileReady() 145 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 149 string tmpDataPath = tmpPath + string(BConstants::BACKUP_TOOL_INCREMENTAL); in OnFileReady() 160 string tmpmanifestPath = tmpPath + string(BConstants::BACKUP_TOOL_MANIFEST); in OnFileReady() 328 string tmpPath in Init() local [all...] |
H A D | tools_op_incremental_restore_async.cpp | 113 string tmpPath = string(BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR) + fileInfo.owner + "/0" + in OnFileReady() local 115 printf(" OnFileReady tmpPath = %s \n", tmpPath.c_str()); in OnFileReady() 116 if (access(tmpPath.data(), F_OK) != 0) { in OnFileReady() 120 BExcepUltils::VerifyPath(tmpPath, false); in OnFileReady() 121 UniqueFd fdLocal(open(tmpPath.data(), O_RDONLY)); in OnFileReady() 264 string tmpPath = string(BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR) + bundleName; in RestoreApp() local 265 if (access(tmpPath.data(), F_OK) != 0) { in RestoreApp() 267 tmpPath.c_str(), errno); in RestoreApp() 271 tmpPath in RestoreApp() [all...] |
H A D | tools_op_incremental_restore.cpp | 135 string tmpPath = string(BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR) + fileInfo.owner + "/" + in OnFileReady() local 138 if (access(tmpPath.data(), F_OK) != 0) { in OnFileReady() 141 UniqueFd fdLocal(open(tmpPath.data(), O_RDONLY)); in OnFileReady() 147 tmpPath = string(BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR) + fileInfo.owner + "/" + in OnFileReady() 150 if (access(tmpPath.data(), F_OK) == 0) { in OnFileReady() 151 UniqueFd fdManifest(open(tmpPath.data(), O_RDONLY)); in OnFileReady()
|
H A D | tools_op_backup.cpp | 131 string tmpPath = string(BConstants::BACKUP_TOOL_RECEIVE_DIR) + fileInfo.owner; in OnFileReady() local 132 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 138 UniqueFd fdLocal(open((tmpPath + "/" + fileInfo.fileName).data(), O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU)); in OnFileReady()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_source_loading.cpp | 122 char tmpPath[PATH_MAX] = { 0 };
in IsLocalSourceAvailable() local 123 if (realpath(path.c_str(), tmpPath) == nullptr) {
in IsLocalSourceAvailable() 130 FILE* filePtr = fopen(tmpPath, "rb");
in IsLocalSourceAvailable() 452 std::string tmpPath = GetLocalThumbnailPath(data.path, THUMBNAIL_THUMB_SUFFIX);
453 if (!IsLocalSourceAvailable(tmpPath)) {
456 return tmpPath;
469 std::string tmpPath = GetLocalThumbnailPath(data.path, THUMBNAIL_LCD_SUFFIX);
470 if (!IsLocalSourceAvailable(tmpPath)) {
473 return tmpPath;
486 std::string tmpPath [all...] |
/foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/src/ |
H A D | frame_saver.cpp | 57 char tmpPath[PATH_MAX] = {0}; in FrameSaver() local 59 if (realpath(ss.str().c_str(), tmpPath) == nullptr) { in FrameSaver() 63 ofs_.open(tmpPath, ofs_.out | ofs_.app); in FrameSaver()
|
/foundation/filemanagement/dfs_service/utils/load/src/ |
H A D | plugin_loader.cpp | 48 std::string tmpPath = searchDir + pluginFileName; in GetPluginPath() local 49 if (access(tmpPath.c_str(), F_OK) == 0) { in GetPluginPath() 50 pluginFilePath = tmpPath; in GetPluginPath()
|
/foundation/resourceschedule/work_scheduler/utils/native/src/ |
H A 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/resourceschedule/background_task_mgr/services/common/src/ |
H A D | data_storage_helper.cpp | 202 char *tmpPath = GetOneCfgFile(relativePath.c_str(), buf, PATH_MAX); in GetConfigFileAbsolutePath() local 204 if (!tmpPath || strlen(tmpPath) > PATH_MAX || !realpath(tmpPath, absolutePath)) { in GetConfigFileAbsolutePath() 216 char tmpPath[PATH_MAX] = {0}; in ConvertFullPath() local 217 if (realpath(partialPath.c_str(), tmpPath) == nullptr) { in ConvertFullPath() 220 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/ |
H A D | backup_manager.cpp | 176 auto tmpPath = path + BACKUP_TMP_POSTFIX; in SaveData() local 178 CopyFile(tmpPath, path); in SaveData() 179 RemoveFile(tmpPath.c_str()); in SaveData() 188 auto tmpPath = path + BACKUP_TMP_POSTFIX; in RollBackData() local 191 RemoveFile(tmpPath.c_str()); in RollBackData() 198 auto tmpPath = path + BACKUP_TMP_POSTFIX; in CleanData() local 199 RemoveFile(tmpPath.c_str()); in CleanData()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A 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/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_register_font.cpp | 89 char tmpPath[PATH_MAX] = { 0 }; in LoadFontDataFromFile() local 90 if (ret == false || realpath(path.c_str(), tmpPath) == nullptr) { in LoadFontDataFromFile() 93 std::ifstream ifs(tmpPath, std::ios_base::in); in LoadFontDataFromFile()
|
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_file.cpp | 147 auto tmpPath = make_unique<char[]>(PATH_MAX + 1); in GetRealPath() local 148 int ret = memset_s(tmpPath.get(), PATH_MAX + 1, 0, PATH_MAX + 1); in GetRealPath() 153 if (!realpath(path.c_str(), tmpPath.get())) { in GetRealPath() 158 realPath = string(tmpPath.get()); in GetRealPath()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A 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()
|
/foundation/multimedia/player_framework/services/utils/ |
H A 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/ |
H A D | js_module_reader.cpp | 146 std::string tmpPath = inputPath.substr(inputPath.find_first_of("/") + 1); in GetOtherHspPath() local 147 const std::string sharedBundleName = tmpPath.substr(0, tmpPath.find_first_of("/")); in GetOtherHspPath()
|
/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | json_utils.cpp | 212 char tmpPath[PATH_MAX] = {0}; in GetRealPath() local 213 if (partialPath.size() > PATH_MAX || !realpath(partialPath.c_str(), tmpPath)) { in GetRealPath() 216 fullPath = tmpPath; in GetRealPath()
|
/foundation/resourceschedule/qos_manager/common/src/ |
H A D | config_reader.cpp | 205 char tmpPath[PATH_MAX] = {0}; in GetRealConfigPath() local 207 !realpath(configFilePath, tmpPath)) { in GetRealConfigPath() 212 configPath = tmpPath; in GetRealConfigPath()
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/ |
H A D | cgroup_action.cpp | 242 char tmpPath[PATH_MAX + 1] = {0}; in ParseConfigFileToJsonObj() local 244 !realpath(configFilePath, tmpPath)) { in ParseConfigFileToJsonObj() 247 std::string realConfigFile(tmpPath); in ParseConfigFileToJsonObj()
|
/foundation/window/window_manager/dmserver/src/ |
H A D | display_manager_config.cpp | 70 char tmpPath[PATH_MAX + 1] = { 0 }; in GetConfigPath() local 71 if (!configPath || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) { in GetConfigPath() 75 return std::string(tmpPath); in GetConfigPath()
|