Home
last modified time | relevance | path

Searched refs:resolvedPath (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/io/dev/
H A DFileMonitor.cpp65 char resolvedPath[_MAX_PATH] = {}; in ResolveAbsolutePath() local
66 auto ret = GetFullPathNameA(aPath.c_str(), sizeof(resolvedPath), resolvedPath, nullptr); in ResolveAbsolutePath()
67 if (ret < sizeof(resolvedPath)) { in ResolveAbsolutePath()
71 absolutePath = resolvedPath; in ResolveAbsolutePath()
76 char resolvedPath[_MAX_PATH] = {}; in ResolveAbsolutePath() local
79 auto handle = opendir(resolvedPath); in ResolveAbsolutePath()
82 absolutePath = resolvedPath; in ResolveAbsolutePath()
85 auto handle = fopen(resolvedPath, "r"); in ResolveAbsolutePath()
88 absolutePath = resolvedPath; in ResolveAbsolutePath()
93 char resolvedPath[PATH_MAX + 1] = { 0 }; in ResolveAbsolutePath() local
[all …]
/ohos5.0/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 != tar… in GetTarballDirAndName()
/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Dhdf_load_vdi.c27 char resolvedPath[PATH_MAX + 1] = {0}; in HdfLoadVdi() local
39 …if (realpath(path, resolvedPath) == NULL || strncmp(resolvedPath, VDI_PATH, strlen(VDI_PATH)) != 0… in HdfLoadVdi()
41 __func__, path, resolvedPath, errno); in HdfLoadVdi()
51 void *handler = dlopen(resolvedPath, RTLD_LAZY); in HdfLoadVdi()
/ohos5.0/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()
/ohos5.0/base/hiviewdfx/hitrace/frameworks/native/
H A Dcommon_utils.cpp36 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local
39 if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath()
46 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath()
56 std::string res(resolvedPath); in CanonicalizeSpecPath()
65 std::string resolvedPath = CanonicalizeSpecPath((traceRootPath + traceMarker).c_str()); in MarkClockSync() local
66 int fd = open(resolvedPath.c_str(), O_WRONLY); in MarkClockSync()
68 …R(LOG_CORE, "MarkClockSync: oepn %{public}s fail, errno(%{public}d)", resolvedPath.c_str(), errno); in MarkClockSync()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/softbus_adapter/allconnectmgr/
H A Ddsched_all_connect_manager.cpp90 std::string resolvedPath = "/system/lib64/libcfwk_allconnect_client.z.so"; in GetServiceCollaborationManagerProxy() local
92 std::string resolvedPath = "/system/lib/libcfwk_allconnect_client.z.so"; in GetServiceCollaborationManagerProxy() local
95 if (resolvedPath.length() > PATH_MAX || realpath(resolvedPath.c_str(), path) == nullptr) { in GetServiceCollaborationManagerProxy()
97 GetAnonymStr(resolvedPath).c_str()); in GetServiceCollaborationManagerProxy()
102 dllHandle_ = dlopen(resolvedPath.c_str(), RTLD_LAZY); in GetServiceCollaborationManagerProxy()
105 GetAnonymStr(resolvedPath).c_str()); in GetServiceCollaborationManagerProxy()
/ohos5.0/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()
/ohos5.0/base/global/i18n/frameworks/intl/src/
H A Dsignature_verifier.cpp272 char* resolvedPath = new char[PATH_MAX + 1]; in GetFileStream() local
273 if (realpath(filePath.c_str(), resolvedPath) == nullptr) { in GetFileStream()
274 delete[] resolvedPath; in GetFileStream()
277 const std::string newFilePath = resolvedPath; in GetFileStream()
280 delete[] resolvedPath; in GetFileStream()
285 delete[] resolvedPath; in GetFileStream()
H A Dutils.cpp246 char resolvedPath[PATH_MAX]; in IsDirExist() local
247 if (realpath(path, resolvedPath) == nullptr) { in IsDirExist()
251 return stat(resolvedPath, &buf) == 0 && S_ISDIR(buf.st_mode); in IsDirExist()
317 std::unique_ptr<char[]> resolvedPath = std::make_unique<char[]>(PATH_MAX); in GetTimeZoneAvailableIDs() local
318 if (realpath(tzdataFilePath, resolvedPath.get()) == nullptr) { in GetTimeZoneAvailableIDs()
322 std::ifstream tzdataFile(resolvedPath.get(), std::ios::in | std::ios::binary); in GetTimeZoneAvailableIDs()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_worker.cpp272 std::string resolvedPath; in GetSafeData() local
273 resolvedPath.reserve(PATH_MAX); in GetSafeData()
274 resolvedPath.resize(PATH_MAX - 1); in GetSafeData()
275 if (realpath(ami.c_str(), &(resolvedPath[0])) == nullptr) { in GetSafeData()
280 int fd = open(resolvedPath.c_str(), O_RDONLY); in GetSafeData()
282 …AFwkTag::JSRUNTIME, "Open file %{private}s caught error: %{public}d", resolvedPath.c_str(), errno); in GetSafeData()
288 …AFwkTag::JSRUNTIME, "Get fstat of file %{private}s caught error: %{public}d", resolvedPath.c_str(), in GetSafeData()
301 …auto result = fileMapper->CreateFileMapper(resolvedPath, false, fd, 0, statbuf.st_size, FileMapper… in GetSafeData()
303 … TAG_LOGE(AAFwkTag::JSRUNTIME, "Create file %{private}s mapper failed", resolvedPath.c_str()); in GetSafeData()
/ohos5.0/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()
414 char resolvedPath[PATH_MAX + 1] = { 0 }; in MakeFilePath() local
415 if (realpath(path.c_str(), resolvedPath) != nullptr) { in MakeFilePath()
416 fileName = resolvedPath; in MakeFilePath()
433 if (realpath(path.c_str(), resolvedPath) == nullptr) { in MakeFilePath()
437 fileName = resolvedPath; in MakeFilePath()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/common/
H A Daes_gcm_helper.cpp87 char *resolvedPath = (char *)malloc(PATH_MAX); in GenerateKey() local
88 if (resolvedPath != nullptr) { in GenerateKey()
89 if (realpath(keyPathPtr, resolvedPath) == NULL) { in GenerateKey()
90 free(resolvedPath); in GenerateKey()
94 free(resolvedPath); in GenerateKey()
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A Dthermal_dfx.cpp138 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local
140 if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath()
147 if (snprintf_s(resolvedPath, PATH_MAX, sizeof(resolvedPath) - 1, src) == -1) { in CanonicalizeSpecPath()
157 std::string res(resolvedPath); in CanonicalizeSpecPath()
163 std::string resolvedPath = CanonicalizeSpecPath(dataFile.c_str()); in Compress() local
164 FILE* fp = fopen(resolvedPath.c_str(), "rb"); in Compress()
/ohos5.0/base/time/time_service/services/time/src/
H A Dtime_zone_info.cpp90 std::unique_ptr<char[]> resolvedPath = std::make_unique<char[]>(PATH_MAX + 1); in GetTimeZoneAvailableIDs() local
91 if (realpath(tzIdConfigPath, resolvedPath.get()) == nullptr) { in GetTimeZoneAvailableIDs()
95 std::ifstream file(resolvedPath.get()); in GetTimeZoneAvailableIDs()
/ohos5.0/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiolibaudiobindservicecapture_fuzzer/
H A Daudiolibaudiobindservicecapture_fuzzer.cpp26 char resolvedPath[] = HDF_LIBRARY_FULL_PATH("libaudio_capture_adapter"); in AudioLibAudioBindserviceCaptureFuzzTest() local
27 void *ptrHandle = dlopen(resolvedPath, RTLD_LAZY); in AudioLibAudioBindserviceCaptureFuzzTest()
/ohos5.0/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiolibaudiobindservicerender_fuzzer/
H A Daudiolibaudiobindservicerender_fuzzer.cpp26 char resolvedPath[] = HDF_LIBRARY_FULL_PATH("libaudio_render_adapter"); in AudioLibAudioBindserviceRenderFuzzTest() local
27 void *ptrHandle = dlopen(resolvedPath, RTLD_LAZY); in AudioLibAudioBindserviceRenderFuzzTest()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/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()
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Dobtain_file.cpp96 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsValidPath() local
97 if (filePath.length() > PATH_MAX || realpath(filePath.c_str(), resolvedPath) == nullptr in IsValidPath()
98 || strncmp(resolvedPath, filePath.c_str(), filePath.length()) != 0) { in IsValidPath()
/ohos5.0/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()
/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_common.cpp61 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsPathValid() local
62 if (path.length() > PATH_MAX || realpath(path.c_str(), resolvedPath) == nullptr || in IsPathValid()
63 strncmp(resolvedPath, path.c_str(), path.length()) != 0) { in IsPathValid()
/ohos5.0/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfacelibctlcapturecmdid_fuzzer/
H A Daudiointerfacelibctlcapturecmdid_fuzzer.cpp25 char resolvedPath[] = HDF_LIBRARY_FULL_PATH("libaudio_capture_adapter"); in AudioInterfacelibctlcaptureCmdidFuzzTest() local
26 void *ctlcapFuzzPtrHandle = dlopen(resolvedPath, RTLD_LAZY); in AudioInterfacelibctlcaptureCmdidFuzzTest()
/ohos5.0/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfaceliboutputcapturecmdid_fuzzer/
H A Daudiointerfaceliboutputcapturecmdid_fuzzer.cpp25 char resolvedPath[] = HDF_LIBRARY_FULL_PATH("libaudio_capture_adapter"); in AudioInterfaceliboutputcaptureCmdidFuzzTest() local
26 void *outputCapPtrHandle = dlopen(resolvedPath, RTLD_LAZY); in AudioInterfaceliboutputcaptureCmdidFuzzTest()
/ohos5.0/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfaceliboutputrendercmdid_fuzzer/
H A Daudiointerfaceliboutputrendercmdid_fuzzer.cpp24 char resolvedPath[] = HDF_LIBRARY_FULL_PATH("libaudio_render_adapter"); in AudioInterfaceliboutputrenderCmdidFuzzTest() local
25 void *outputRenFuzzPtrHandle = dlopen(resolvedPath, RTLD_LAZY); in AudioInterfaceliboutputrenderCmdidFuzzTest()

123