Home
last modified time | relevance | path

Searched refs:canonicalPath (Results 1 - 3 of 3) sorted by relevance

/base/update/updateservice/services/core/ability/utils/src/
H A Dsha256_utils.cpp64 char *canonicalPath = realpath(fileName, NULL); in GetDigestFromFile() local
65 if (canonicalPath == NULL) { in GetDigestFromFile()
69 FILE *fp = fopen(canonicalPath, "rb"); in GetDigestFromFile()
70 free(canonicalPath); in GetDigestFromFile()
/base/hiviewdfx/hidumper/frameworks/native/src/util/
H A Dfile_utils.cpp55 char canonicalPath[PATH_MAX] = {0}; in LoadStringFromProcCb() local
56 if (realpath(path.c_str(), canonicalPath) == nullptr) { in LoadStringFromProcCb()
60 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(canonicalPath, "re"), fclose}; in LoadStringFromProcCb()
/base/customization/enterprise_device_management/interfaces/kits/security_manager/src/
H A Dsecurity_manager_addon.cpp539 char canonicalPath[PATH_MAX + 1] = { 0 }; in Decode() local
540 if (url.size() > PATH_MAX || realpath(url.c_str(), canonicalPath) == nullptr) { in Decode()
544 int fd = open(canonicalPath, O_RDONLY); in Decode()

Completed in 2 milliseconds