/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() 154 if (snprintf_s(nameBuffer, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, "%s.%s", in GetProcessInfo() 170 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceWaitForStatus() 180 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceSetReady() 196 …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 | 48 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ServiceWatchForStatus() 49 if (snprintf_s(paramName, PARAM_NAME_LEN_MAX, PARAM_NAME_LEN_MAX - 1, in ServiceWatchForStatus()
|
/base/startup/init/test/fuzztest/systemgetparametername_fuzzer/ |
D | systemgetparametername_fuzzer.cpp | 25 char buffer[PARAM_NAME_LEN_MAX] = {0}; in FuzzSystemGetParameterName() 29 if (!SystemGetParameterName(handle, buffer, PARAM_NAME_LEN_MAX)) { in FuzzSystemGetParameterName()
|
/base/startup/init/services/begetctl/ |
D | param_cmd.c | 58 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer() 185 if (buffSize < (PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX)) { in ShowParamForCmdLs() 188 char *value = buffer + PARAM_NAME_LEN_MAX; in ShowParamForCmdLs() 189 (void)SystemGetParameterName(handle, buffer, PARAM_NAME_LEN_MAX); in ShowParamForCmdLs() 190 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdLs() 266 BSH_CHECK(!(buffSize < (PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX)), return); in ShowParamForCmdGet() 267 char *value = buffer + PARAM_NAME_LEN_MAX; in ShowParamForCmdGet() 268 (void)SystemGetParameterName(handle, buffer, PARAM_NAME_LEN_MAX); in ShowParamForCmdGet() 269 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdGet()
|
/base/startup/init/services/include/param/ |
D | init_param.h | 33 #ifndef PARAM_NAME_LEN_MAX 36 #define PARAM_NAME_LEN_MAX 96 macro
|
/base/startup/init/interfaces/innerkits/include/syspara/ |
D | parameter.h | 27 #define PARAM_NAME_LEN_MAX 96 macro
|
/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/services/param/linux/ |
D | param_message.h | 64 char key[PARAM_NAME_LEN_MAX + 4];
|
/base/startup/init/services/param/manager/ |
D | param_persist.c | 80 static char name[PARAM_NAME_LEN_MAX] = {0}; in SavePersistParam() 81 int ret = memcpy_s(name, PARAM_NAME_LEN_MAX - 1, entry->data, entry->keyLength); in SavePersistParam()
|
D | param_server.c | 171 const int buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadDefaultParam_()
|
/base/startup/syspara_lite/adapter/native/syspara/src/ |
D | parameters.cpp | 75 std::vector<char> value(PARAM_NAME_LEN_MAX); in GetParameterName() 76 int ret = SystemGetParameterName(handle, value.data(), PARAM_NAME_LEN_MAX); in GetParameterName()
|
/base/startup/init/test/unittest/param/ |
D | param_unittest.cpp | 199 TestBufferValue(buffer, PARAM_NAME_LEN_MAX - 1); in TestNameIsValid() 202 TestBufferValue(buffer, PARAM_NAME_LEN_MAX); in TestNameIsValid() 205 TestBufferValue(buffer, PARAM_NAME_LEN_MAX + 1); in TestNameIsValid()
|
D | paramservice_unittest.cpp | 203 TestBufferValue(buffer, PARAM_NAME_LEN_MAX - 1); in TestNameIsValid() 206 TestBufferValue(buffer, PARAM_NAME_LEN_MAX); in TestNameIsValid() 209 TestBufferValue(buffer, PARAM_NAME_LEN_MAX + 1); in TestNameIsValid()
|
/base/startup/init/services/param/adapter/ |
D | param_persistadp.c | 49 const int buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadPersistParam()
|
D | param_selinux.c | 136 char name[PARAM_NAME_LEN_MAX] = {0}; in GetWorkSpaceSize()
|
D | param_dac.c | 144 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 size in LoadParamLabels()
|
/base/startup/init/services/param/include/ |
D | param_manager.h | 84 char realKey[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 1];
|
D | trigger_manager.h | 164 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/services/init/standard/ |
D | init_service.c | 46 char paramName[PARAM_NAME_LEN_MAX] = { 0 }; in NotifyServiceChange()
|
D | init_cmds.c | 56 char tmpName[PARAM_NAME_LEN_MAX] = { 0 }; in GetParamValue() 81 ret = strncpy_s(tmpName, PARAM_NAME_LEN_MAX, begin, left - begin); in GetParamValue()
|
/base/startup/init/test/moduletest/ |
D | param_test_cmds.c | 36 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer() 87 char name[PARAM_NAME_LEN_MAX];
|
D | syspara_moduleTest.cpp | 78 char nameGet[PARAM_NAME_LEN_MAX] = {0}; in SetParameterTestFunc() 79 int ret = GetParameterName(handle, nameGet, PARAM_NAME_LEN_MAX); in SetParameterTestFunc()
|
/base/startup/init/services/param/watcher/proxy/ |
D | watcher_manager.cpp | 211 std::vector<char> buffer(PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX); in SendLocalChange() 216 SystemGetParameterName(handle, context->buffer, PARAM_NAME_LEN_MAX); in SendLocalChange() 221 SystemGetParameterValue(handle, context->buffer + PARAM_NAME_LEN_MAX, &size); in SendLocalChange() 223 context->keyPrefix, context->buffer, context->buffer + PARAM_NAME_LEN_MAX); in SendLocalChange()
|
/base/startup/init/services/param/trigger/ |
D | trigger_processor.c | 158 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger()
|