Home
last modified time | relevance | path

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

/base/hiviewdfx/hitrace/cmd/src/
Dhitrace_cmd.cpp186 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local
188 if (!_fullpath(resolvedPath, src, PATH_MAX)) { in CanonicalizeSpecPath()
194 if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath()
201 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath()
211 string res(resolvedPath); in CanonicalizeSpecPath()
217 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() local
218 ifstream fin(resolvedPath.c_str()); in ReadFile()
680 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + path).c_str()); in DumpTrace() local
681 int traceFd = open(resolvedPath.c_str(), O_RDWR); in DumpTrace()
707 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + TRACE_MARKER_PATH).c_str()); in MarkOthersClockSync() local
[all …]
/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/innerkitsimpl/src/
Dprint_utils.cpp102 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsPathValid() local
103 if (path.length() > PATH_MAX || realpath(path.c_str(), resolvedPath) == nullptr || in IsPathValid()
104 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/interfaces/native/innerkits/src/
Dhitrace_dump.cpp425 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local
427 if (!_fullpath(resolvedPath, src, PATH_MAX)) { in CanonicalizeSpecPath()
432 if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath()
439 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath()
449 std::string res(resolvedPath); in CanonicalizeSpecPath()
455 std::string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() local
456 std::ifstream fileIn(resolvedPath.c_str()); in ReadFile()
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
Dhitrace_ndk_test.cpp355 char resolvedPath[PATH_MAX] = { 0 }; in ReadFile() local
356 if (realpath(filename.c_str(), resolvedPath) == nullptr) { in ReadFile()
360 ifstream fin(resolvedPath); in ReadFile()
/base/request/request/frameworks/js/napi/src/
Dnapi_utils.cpp725 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsPathValid() local
726 if (path.length() > PATH_MAX || realpath(path.c_str(), resolvedPath) == nullptr || in IsPathValid()
727 strncmp(resolvedPath, path.c_str(), path.length()) != 0) { in IsPathValid()