Home
last modified time | relevance | path

Searched refs:PATH_MAX (Results 1 – 25 of 69) sorted by relevance

123

/base/startup/init/ueventd/
Dueventd_firmware_handler.c29 char fwLoadingPath[PATH_MAX] = {}; in HandleFimwareDeviceEvent()
31 … if (snprintf_s(fwLoadingPath, PATH_MAX, PATH_MAX - 1, "/sys%s/loading", uevent->syspath) == -1) { in HandleFimwareDeviceEvent()
Dueventd.c336 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/
Dthermal_sensor_provision.h29 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/
Ddatashare_adapter_impl.cpp71 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/
Dreboot_misc.c75 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/
Ddump_utils.cpp86 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/
Ddirectory_ex.cpp25 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/
Dseccomp_policy.c94 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/
Dswitch_root.c111 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/
Dapp_file.c36 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/
Dgetcontrolfile_fuzzer.cpp25 if (size > PATH_MAX) { in FuzzGetControlFile()
/base/startup/init/services/init/
Dinit_service_file.c36 char path[PATH_MAX] = {0}; in CreateFile()
60 char pubName[PATH_MAX] = { 0 }; in SetFileEnv()
/base/update/updater/services/diffpatch/
Ddiffpatch.cpp43 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/
Dinit_file.c34 char path[PATH_MAX] = { 0 }; in GetControlFile()
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dsanitizerd_monitor.cpp42 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/
Dglobal.c151 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/
Dmodulemgr.c102 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/
Dusage_event_report_service.cpp47 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/
Dobtain_file.cpp95 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/
Djson_utils.cpp29 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/
Dhks_test_file_operator.c95 char filePath[PATH_MAX + 1] = {0}; in FileRead()
136 char filePath[PATH_MAX + 1] = {0}; in FileWrite()
/base/hiviewdfx/hiview/adapter/utility/platform/windows/
Dfile_util.cpp30 constexpr int PATH_MAX = 4096; variable
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Devent_log_catcher.cpp74 char path[PATH_MAX] = {0}; in AppendFile()
/base/startup/init/interfaces/innerkits/sandbox/
Dsandbox.c479 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/
Dflashd_utils.cpp27 char realPath[PATH_MAX + 1] = {0}; in GetRealPath()

123