Searched refs:resolvedPath (Results 1 – 7 of 7) sorted by relevance
| /base/hiviewdfx/hitrace/cmd/src/ |
| D | hitrace_cmd.cpp | 186 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/ |
| D | obtain_file.cpp | 96 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/ |
| D | print_utils.cpp | 102 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/ |
| D | request_manager.cpp | 206 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/ |
| D | hitrace_dump.cpp | 425 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/ |
| D | hitrace_ndk_test.cpp | 355 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/ |
| D | napi_utils.cpp | 725 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()
|