Home
last modified time | relevance | path

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

/base/hiviewdfx/hitrace/frameworks/native/
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()
/base/request/request/frameworks/js/napi/src/upload/
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()
/base/print/print_fwk/frameworks/models/print_models/src/
Dprint_utils.cpp103 char resolvedPath[PATH_MAX] = { 0 }; in IsPathValid() local
104 if (path.length() >= PATH_MAX || realpath(path.c_str(), resolvedPath) == nullptr || in IsPathValid()
105 strncmp(resolvedPath, path.c_str(), path.length()) != 0) { in IsPathValid()
/base/request/request/frameworks/js/napi/src/legacy/
Drequest_manager.cpp206 char resolvedPath[PATH_MAX] = { 0 }; in IsPathValid() local
207 …if (realpath(fileDirectory.c_str(), resolvedPath) && !strncmp(resolvedPath, dir.c_str(), dir.lengt… in IsPathValid()
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
Dhitrace_ndk_test.cpp266 char resolvedPath[PATH_MAX] = { 0 }; in ReadFile() local
267 if (realpath(filename.c_str(), resolvedPath) == nullptr) { in ReadFile()
271 ifstream fin(resolvedPath); in ReadFile()
/base/request/request/frameworks/js/napi/src/
Dnapi_utils.cpp784 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsPathValid() local
785 if (path.length() > PATH_MAX || realpath(path.c_str(), resolvedPath) == nullptr in IsPathValid()
786 || strncmp(resolvedPath, path.c_str(), path.length()) != 0) { in IsPathValid()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_dump.cpp371 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ReadFileInner() local
372 std::ifstream fileIn(resolvedPath.c_str()); in ReadFileInner()