Home
last modified time | relevance | path

Searched refs:PARAM_NAME_LEN_MAX (Results 1 – 25 of 28) sorted by relevance

12

/base/startup/init/interfaces/innerkits/service_control/
Dservice_control.c80 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/
Dservice_watcher.c36 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/
Dgetparametername_fuzzer.cpp26 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/
Dinit_param.h32 #ifndef PARAM_NAME_LEN_MAX
35 #define PARAM_NAME_LEN_MAX 96 macro
/base/startup/init/services/begetctl/
Dparam_cmd.c71 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/
Dsystemtraversalparameter_fuzzer.cpp46 if (size > PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX) { in FuzzSystemTraversalParameter()
/base/startup/init/interfaces/innerkits/include/syspara/
Dparameter.h27 #define PARAM_NAME_LEN_MAX 96 macro
/base/startup/init/services/param/manager/
Dparam_server.c111 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_()
Dparam_persist.c79 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/
Dparam_message.h64 char key[PARAM_NAME_LEN_MAX + 4];
/base/startup/init/test/benchmark/
Dparameter_benchmark.cpp52 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/
Dparam_persistadp.c54 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadPersistParam()
Dparam_dac.c146 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 size in LoadParamLabels()
Dparam_selinux.c138 char name[PARAM_NAME_LEN_MAX] = {0}; in GetWorkSpaceSize()
/base/startup/init/services/param/include/
Dparam_manager.h93 char realKey[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 1];
Dtrigger_manager.h166 char cache[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX];
/base/startup/init/ueventd/standard/
Dueventd_parameter.c67 char paramName[PARAM_NAME_LEN_MAX] = {0}; in ThreadRun()
/base/startup/init/test/unittest/param/
Dparamservice_unittest.cpp200 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()
Dparam_unittest.cpp202 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/
Dparam_test_cmds.c37 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer()
88 char name[PARAM_NAME_LEN_MAX];
Dsyspara_moduleTest.cpp79 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/
Dinit_service.c46 char paramName[PARAM_NAME_LEN_MAX] = { 0 }; in NotifyServiceChange()
Dinit_cmds.c58 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/
Dwatcher_manager.cpp212 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/
Dtrigger_processor.c165 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger()

12