Searched refs:resolvedPath (Results 1 – 7 of 7) sorted by relevance
| /base/hiviewdfx/hitrace/frameworks/native/ |
| D | common_utils.cpp | 36 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/ |
| 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/models/print_models/src/ |
| D | print_utils.cpp | 103 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/ |
| 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/test/unittest/hitrace_meter/ |
| D | hitrace_ndk_test.cpp | 266 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/ |
| D | napi_utils.cpp | 784 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/ |
| D | hitrace_dump.cpp | 371 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ReadFileInner() local 372 std::ifstream fileIn(resolvedPath.c_str()); in ReadFileInner()
|