/base/startup/init/interfaces/innerkits/service_control/ |
D | service_control.c | 80 char paramName[PARAM_NAME_LEN_MAX] = {0}; in GetCurrentServiceStatus() 81 if (snprintf_s(paramName, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, in GetCurrentServiceStatus() 153 if (snprintf_s(nameBuffer, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, "%s.%s", in GetProcessInfo() 169 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceWaitForStatus() 179 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceSetReady() 195 …if (snprintf_s(value, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, "%s|%lld", serviceName, timeout)… in StartServiceByTimer()
|
/base/startup/init/interfaces/innerkits/service_watcher/ |
D | service_watcher.c | 36 char paramName[PARAM_NAME_LEN_MAX] = { 0 }; in ServiceStateChange() 55 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceWatchForStatus() 57 if (snprintf_s(paramName, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, in ServiceWatchForStatus()
|
/base/startup/init/test/fuzztest/getparametername_fuzzer/ |
D | getparametername_fuzzer.cpp | 26 char buffer[PARAM_NAME_LEN_MAX] = {0}; in FuzzGetParameterName() 30 if (!GetParameterName(handle, buffer, PARAM_NAME_LEN_MAX)) { in FuzzGetParameterName()
|
/base/startup/init/services/include/param/ |
D | init_param.h | 32 #ifndef PARAM_NAME_LEN_MAX 35 #define PARAM_NAME_LEN_MAX 96 macro
|
/base/startup/init/services/begetctl/ |
D | param_cmd.c | 71 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer() 198 if (buffSize < (PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX)) { in ShowParamForCmdLs() 201 char *value = buffer + PARAM_NAME_LEN_MAX; in ShowParamForCmdLs() 202 (void)SystemGetParameterName(handle, buffer, PARAM_NAME_LEN_MAX); in ShowParamForCmdLs() 203 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdLs() 279 BSH_CHECK(!(buffSize < (PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX)), return); in ShowParamForCmdGet() 280 char *value = buffer + PARAM_NAME_LEN_MAX; in ShowParamForCmdGet() 281 (void)SystemGetParameterName(handle, buffer, PARAM_NAME_LEN_MAX); in ShowParamForCmdGet() 282 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdGet()
|
/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/ |
D | systemtraversalparameter_fuzzer.cpp | 46 if (size > PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX) { in FuzzSystemTraversalParameter()
|
/base/startup/init/interfaces/innerkits/include/syspara/ |
D | parameter.h | 27 #define PARAM_NAME_LEN_MAX 96 macro
|
/base/startup/init/services/param/manager/ |
D | param_server.c | 111 char fullName[PARAM_NAME_LEN_MAX]; in CmdlineIterator() 265 const int buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadDefaultParam_() 353 char buffer[PARAM_NAME_LEN_MAX] = {0}; in LoadOneParamAreaSize_()
|
D | param_persist.c | 79 static char name[PARAM_NAME_LEN_MAX] = {0}; in SavePersistParam() 80 int ret = memcpy_s(name, PARAM_NAME_LEN_MAX - 1, entry->data, entry->keyLength); in SavePersistParam()
|
/base/startup/init/services/param/linux/ |
D | param_message.h | 64 char key[PARAM_NAME_LEN_MAX + 4];
|
/base/startup/init/test/benchmark/ |
D | parameter_benchmark.cpp | 52 nameLens[i] = (TestRandom() % (PARAM_NAME_LEN_MAX - 10)) + 10; // 10 name len in LocalParameterTestState() 53 names[i] = new char[PARAM_NAME_LEN_MAX + 1]; in LocalParameterTestState()
|
/base/startup/init/services/param/adapter/ |
D | param_persistadp.c | 54 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadPersistParam()
|
D | param_dac.c | 146 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 size in LoadParamLabels()
|
D | param_selinux.c | 138 char name[PARAM_NAME_LEN_MAX] = {0}; in GetWorkSpaceSize()
|
/base/startup/init/services/param/include/ |
D | param_manager.h | 93 char realKey[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 1];
|
D | trigger_manager.h | 166 char cache[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX];
|
/base/startup/init/ueventd/standard/ |
D | ueventd_parameter.c | 67 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ThreadRun()
|
/base/startup/init/test/unittest/param/ |
D | paramservice_unittest.cpp | 200 TestBufferValue(buffer, PARAM_NAME_LEN_MAX - 1); in TestNameIsValid() 203 TestBufferValue(buffer, PARAM_NAME_LEN_MAX); in TestNameIsValid() 206 TestBufferValue(buffer, PARAM_NAME_LEN_MAX + 1); in TestNameIsValid()
|
D | param_unittest.cpp | 202 TestBufferValue(buffer, PARAM_NAME_LEN_MAX - 1); in TestNameIsValid() 205 TestBufferValue(buffer, PARAM_NAME_LEN_MAX); in TestNameIsValid() 208 TestBufferValue(buffer, PARAM_NAME_LEN_MAX + 1); in TestNameIsValid()
|
/base/startup/init/test/moduletest/ |
D | param_test_cmds.c | 37 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer() 88 char name[PARAM_NAME_LEN_MAX];
|
D | syspara_moduleTest.cpp | 79 char nameGet[PARAM_NAME_LEN_MAX] = {0}; in SetParameterTestFunc() 80 int ret = GetParameterName(handle, nameGet, PARAM_NAME_LEN_MAX); in SetParameterTestFunc()
|
/base/startup/init/services/init/standard/ |
D | init_service.c | 46 char paramName[PARAM_NAME_LEN_MAX] = { 0 }; in NotifyServiceChange()
|
D | init_cmds.c | 58 char tmpName[PARAM_NAME_LEN_MAX] = { 0 }; in GetParamValue() 86 ret = strncpy_s(tmpName, PARAM_NAME_LEN_MAX, begin, left - begin); in GetParamValue()
|
/base/startup/init/services/param/watcher/proxy/ |
D | watcher_manager.cpp | 212 std::vector<char> buffer(PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX); in SendLocalChange() 220 SystemGetParameterName(handle, context->buffer, PARAM_NAME_LEN_MAX); in SendLocalChange() 226 SystemGetParameterValue(handle, context->buffer + PARAM_NAME_LEN_MAX, &size); in SendLocalChange() 232 context->keyPrefix, context->buffer, context->buffer + PARAM_NAME_LEN_MAX); in SendLocalChange()
|
/base/startup/init/services/param/trigger/ |
D | trigger_processor.c | 165 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger()
|