/base/startup/init/ueventd/ |
D | ueventd_firmware_handler.c | 29 char fwLoadingPath[PATH_MAX] = {}; in HandleFimwareDeviceEvent() 31 … if (snprintf_s(fwLoadingPath, PATH_MAX, PATH_MAX - 1, "/sys%s/loading", uevent->syspath) == -1) { in HandleFimwareDeviceEvent()
|
D | ueventd.c | 336 char pathBuffer[PATH_MAX]; in Trigger() 337 … if (snprintf_s(pathBuffer, PATH_MAX, PATH_MAX - 1, "%s/%s", path, dirent->d_name) == -1) { in Trigger() 345 char ueventBuffer[PATH_MAX]; in Trigger() 346 if (snprintf_s(ueventBuffer, PATH_MAX, PATH_MAX - 1, "%s/%s", path, "uevent") == -1) { in Trigger()
|
/base/powermgr/thermal_manager/application/protector/include/ |
D | thermal_sensor_provision.h | 29 char tempPath[PATH_MAX]; 30 char typePath[PATH_MAX]; 36 char thermalZonePath[PATH_MAX]; 37 char coolingDevicePath[PATH_MAX];
|
/base/web/webview/ohos_adapter/datashare_adapter/src/ |
D | datashare_adapter_impl.cpp | 71 char buf[PATH_MAX] = {'\0'}; in GetFileDisplayName() 72 char filePath[PATH_MAX] = {'\0'}; in GetFileDisplayName() 81 ret = readlink(buf, filePath, PATH_MAX - 1); in GetFileDisplayName()
|
/base/startup/init/services/modules/reboot/ |
D | reboot_misc.c | 75 char miscFile[PATH_MAX] = {0}; in GetRebootReasonFromMisc() 76 int ret = GetBlockDevicePath("/misc", miscFile, PATH_MAX); in GetRebootReasonFromMisc() 86 char miscFile[PATH_MAX] = {0}; in UpdateMiscMessage() 87 int ret = GetBlockDevicePath("/misc", miscFile, PATH_MAX); in UpdateMiscMessage()
|
/base/hiviewdfx/hidumper/frameworks/native/ |
D | dump_utils.cpp | 86 char path[PATH_MAX] = {0}; in FdToRead() 116 char path[PATH_MAX] = {0}; in FdToWrite() 144 char path[PATH_MAX] = {0}; in CheckProcessAlive() 145 char pathPid[PATH_MAX] = {0}; in CheckProcessAlive() 146 int ret = sprintf_s(pathPid, PATH_MAX, "/proc/%u", pid); in CheckProcessAlive()
|
/base/hiviewdfx/faultloggerd/utils/ |
D | directory_ex.cpp | 25 char procFile[PATH_MAX + 1] = {0}; in GetCurrentProcFullFileName() 26 int ret = readlink("/proc/self/exe", procFile, PATH_MAX); in GetCurrentProcFullFileName() 27 if (ret < 0 || ret > PATH_MAX) { in GetCurrentProcFullFileName() 266 if ((path.length() >= PATH_MAX)) { in PathToRealPath() 270 char tmpPath[PATH_MAX] = {0}; in PathToRealPath()
|
/base/startup/init/services/modules/seccomp/ |
D | seccomp_policy.c | 94 size_t maxFilterNameLen = PATH_MAX - strlen(FILTER_LIB_PATH_FORMAT) + strlen("%s") - 1; in GetFilterFileByName() 99 char filterLibPath[PATH_MAX] = {0}; in GetFilterFileByName() 123 char filterVaribleName[PATH_MAX] = {0}; in GetSeccompPolicy()
|
/base/startup/init/services/init/standard/ |
D | switch_root.c | 111 char newMountPoint[PATH_MAX] = {0}; in MountToNewTarget() 112 if (snprintf_s(newMountPoint, PATH_MAX, PATH_MAX - 1, "%s%s", target, mountPoint) == -1) { in MountToNewTarget()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_file.c | 36 char *path = APPV_MALLOC(PATH_MAX + 1); in InitVerify() 41 if ((strlen(filePath) > PATH_MAX) || (NULL == realpath(filePath, path))) { in InitVerify()
|
/base/startup/init/test/fuzztest/getcontrolfile_fuzzer/ |
D | getcontrolfile_fuzzer.cpp | 25 if (size > PATH_MAX) { in FuzzGetControlFile()
|
/base/startup/init/services/init/ |
D | init_service_file.c | 36 char path[PATH_MAX] = {0}; in CreateFile() 60 char pubName[PATH_MAX] = { 0 }; in SetFileEnv()
|
/base/update/updater/services/diffpatch/ |
D | diffpatch.cpp | 43 char realPath[PATH_MAX] = { 0 }; in PatchMapFile() 45 if (_fullpath(realPath, fileName.c_str(), PATH_MAX) == nullptr) { in PatchMapFile()
|
/base/startup/init/interfaces/innerkits/file/ |
D | init_file.c | 34 char path[PATH_MAX] = { 0 }; in GetControlFile()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/ |
D | sanitizerd_monitor.cpp | 42 char filename[PATH_MAX]; in ReadNotify() 60 if (strcpy_s(filename, PATH_MAX, event->name) != EOK) { in ReadNotify()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | global.c | 151 char realResourcePath[PATH_MAX] = {'\0'}; in GLOBAL_GetValueByIdInternal() 153 if (utilsImpl->CheckFilePath(path, realResourcePath, PATH_MAX) == MC_FAILURE) { in GLOBAL_GetValueByIdInternal() 220 char realResourcePath[PATH_MAX] = {'\0'}; in GLOBAL_GetValueByNameInternal() 222 if (utilsImpl->CheckFilePath(path, realResourcePath, PATH_MAX) == MC_FAILURE) { in GLOBAL_GetValueByNameInternal()
|
/base/startup/init/interfaces/innerkits/modulemgr/ |
D | modulemgr.c | 102 char path[PATH_MAX]; in ModuleInstall() 206 char *moduleName = malloc(PATH_MAX); in ScanModules() 223 int len = sprintf_s(moduleName, PATH_MAX - 1, "%s/%s", path, file->d_name); in ScanModules() 242 char path[PATH_MAX]; in ModuleMgrScan()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/ |
D | usage_event_report_service.cpp | 47 char realPath[PATH_MAX] = { 0x00 }; in InitWorkPath() 48 if (strlen(path) >= PATH_MAX || realpath(path, realPath) == nullptr) { in InitWorkPath()
|
/base/request/request/upload/frameworks/libs/src/ |
D | obtain_file.cpp | 95 char resolvedPath[PATH_MAX + 1] = { 0 }; in IsValidPath() 96 if (filePath.length() > PATH_MAX || realpath(filePath.c_str(), resolvedPath) == nullptr || in IsValidPath()
|
/base/startup/appspawn/util/src/ |
D | json_utils.cpp | 29 APPSPAWN_CHECK(jsonPath.length() <= PATH_MAX, return false, "jsonPath is too long"); in GetJsonObjFromJson()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_file_operator.c | 95 char filePath[PATH_MAX + 1] = {0}; in FileRead() 136 char filePath[PATH_MAX + 1] = {0}; in FileWrite()
|
/base/hiviewdfx/hiview/adapter/utility/platform/windows/ |
D | file_util.cpp | 30 constexpr int PATH_MAX = 4096; variable
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
D | event_log_catcher.cpp | 74 char path[PATH_MAX] = {0}; in AppendFile()
|
/base/startup/init/interfaces/innerkits/sandbox/ |
D | sandbox.c | 479 char target[PATH_MAX] = {}; in MountSandboxNode() 480 … BEGET_ERROR_CHECK(snprintf_s(target, PATH_MAX, PATH_MAX - 1, "%s%s", rootPath, info->target) > 0, in MountSandboxNode() 508 char linkName[PATH_MAX] = {0}; in LinkSandboxNode() 509 …BEGET_ERROR_CHECK(!(snprintf_s(linkName, PATH_MAX, PATH_MAX - 1, "%s%s", rootPath, info->linkName)… in LinkSandboxNode()
|
/base/update/updater/services/flashd/daemon/ |
D | flashd_utils.cpp | 27 char realPath[PATH_MAX + 1] = {0}; in GetRealPath()
|