Lines Matching defs:src
35 std::string CanonicalizeSpecPath(const char* src)
37 if (src == nullptr || strlen(src) >= PATH_MAX) {
38 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: %{pubilc}s failed.", src);
43 if (access(src, F_OK) == 0) {
44 if (realpath(src, resolvedPath) == nullptr) {
45 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: realpath %{pubilc}s failed.", src);
49 std::string fileName(src);
51 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) {
52 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: sprintf_s %{pubilc}s failed.", src);
56 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: find .. src failed.");