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()
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/
Dservice_watcher.c48 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/
Dsystemgetparametername_fuzzer.cpp25 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/
Dparam_cmd.c58 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/
Dinit_param.h33 #ifndef PARAM_NAME_LEN_MAX
36 #define PARAM_NAME_LEN_MAX 96 macro
/base/startup/init/interfaces/innerkits/include/syspara/
Dparameter.h27 #define PARAM_NAME_LEN_MAX 96 macro
/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/services/param/linux/
Dparam_message.h64 char key[PARAM_NAME_LEN_MAX + 4];
/base/startup/init/services/param/manager/
Dparam_persist.c80 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()
Dparam_server.c171 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/
Dparameters.cpp75 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/
Dparam_unittest.cpp199 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()
Dparamservice_unittest.cpp203 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/
Dparam_persistadp.c49 const int buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 max len in LoadPersistParam()
Dparam_selinux.c136 char name[PARAM_NAME_LEN_MAX] = {0}; in GetWorkSpaceSize()
Dparam_dac.c144 const uint32_t buffSize = PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 10; // 10 size in LoadParamLabels()
/base/startup/init/services/param/include/
Dparam_manager.h84 char realKey[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX + 1];
Dtrigger_manager.h164 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/services/init/standard/
Dinit_service.c46 char paramName[PARAM_NAME_LEN_MAX] = { 0 }; in NotifyServiceChange()
Dinit_cmds.c56 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/
Dparam_test_cmds.c36 static char buffer[PARAM_NAME_LEN_MAX + PARAM_CONST_VALUE_LEN_MAX] = {0}; in GetLocalBuffer()
87 char name[PARAM_NAME_LEN_MAX];
Dsyspara_moduleTest.cpp78 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/
Dwatcher_manager.cpp211 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/
Dtrigger_processor.c158 PARAM_CHECK(bufferSize < (PARAM_CONST_VALUE_LEN_MAX + PARAM_NAME_LEN_MAX + 1 + 1 + 1), in PostParamTrigger()

12