Home
last modified time | relevance | path

Searched refs:nameLen (Results 1 – 25 of 34) sorted by relevance

12

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_file_operator.c61 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local
62 char *tmpFileName = (char *)HksTestMalloc(nameLen); in GetFullFileName()
66 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName()
68 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/
Dsystemtraversalparameter_fuzzer.cpp28 unsigned int nameLen = nameAndValue->size; in FakeShowParam() local
30 SystemGetParameterName(handle, name, nameLen); in FakeShowParam()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dcontexts_trie.c44 uint32_t nameLen = (uint32_t)strlen(name); in AddGroupNode() local
45 ParamHashNode *groupNode = GetGroupNode(root, name, nameLen); in AddGroupNode()
54 groupNode->nameLen = nameLen; in AddGroupNode()
55 groupNode->name = (char *)calloc(1, nameLen + 1); in AddGroupNode()
60 memcpy(groupNode->name, name, nameLen + 1); in AddGroupNode()
81 uint32_t nameLen = (uint32_t)strlen(element); in InsertElementToTrie() local
82 ParamHashNode *childNode = GetGroupNode(root, element, nameLen); in InsertElementToTrie()
Dselinux_map.c40 return strncmp(groupNode1->name, key, groupNode1->nameLen); in GroupNodeKeyCompare()
46 return GenerateHashCode(groupNode->name, groupNode->nameLen); in GroupNodeGetNodeHashCode()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_file_operator.c70 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local
71 char *tmpFileName = (char *)HksTestMalloc(nameLen); in GetFullFileName()
75 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName()
77 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
/base/security/huks/utils/file_operator/
Dhks_file_operator_lite.c78 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local
79 char *tmpFileName = (char *)HksMalloc(nameLen); in GetFullFileName()
81 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName()
83 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
Dhks_file_operator.c62 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local
63 char *tmpFileName = (char *)HksMalloc(nameLen); in GetFullFileName()
65 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName()
67 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
/base/security/selinux_adapter/interfaces/policycoreutils/include/
Dselinux_map.h52 uint32_t nameLen; member
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c459 idItem->nameLen = (uint16_t)ConvertUint8ArrayToUint32(lengthCache, VALUE_LENGTH_OFFSET); in GetIdItem()
460 if (idItem->nameLen == 0 || idItem->nameLen > MAX_ITEM_LENGTH) { in GetIdItem()
466 idItem->name = (char *)malloc(idItem->nameLen); in GetIdItem()
472 (void)memset_s(idItem->name, idItem->nameLen, 0, idItem->nameLen); in GetIdItem()
473 (void)read(file, idItem->name, idItem->nameLen); in GetIdItem()
/base/startup/init/services/param/adapter/
Dparam_dac.c86 uint32_t nameLen = groupName - value; in GetParamDacData() local
88 name[nameLen] = '\0'; in GetParamDacData()
90 nameLen = mode - groupName - 1; in GetParamDacData()
92 name[nameLen] = '\0'; in GetParamDacData()
/base/startup/init/services/init/
Dinit_group_manager.c236 uint32_t nameLen = (uint32_t)strlen(name); in AddGroupNode() local
237 groupNode = (InitGroupNode *)calloc(1, sizeof(InitGroupNode) + nameLen + 1); in AddGroupNode()
239 int ret = memcpy_s(groupNode->name, nameLen + 1, name, nameLen + 1); in AddGroupNode()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file_operator.c56 uint32_t nameLen = CM_MAX_FILE_NAME_LEN; in GetFullFileName() local
57 char *tmpFileName = (char *)CMMalloc(nameLen); in GetFullFileName()
61 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName()
63 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_interface.h35 size_t nameLen = 0; member
/base/startup/init/services/param/base/
Dparam_base.c570 uint32_t nameLen = strlen(name); in CachedParameterCreate() local
571 PARAM_CHECK(nameLen < PARAM_NAME_LEN_MAX, return NULL, "Invalid name %s", name); in CachedParameterCreate()
586 sizeof(CachedParameter) + PARAM_ALIGN(nameLen) + 1 + PARAM_VALUE_LEN_MAX); in CachedParameterCreate()
588 ret = PARAM_STRCPY(param->data, nameLen + 1, name); in CachedParameterCreate()
593 param->nameLen = nameLen; in CachedParameterCreate()
594 param->paramValue = &param->data[PARAM_ALIGN(nameLen) + 1]; in CachedParameterCreate()
622 ParamTrieNode *node = BaseFindTrieNode(param->workspace, param->data, param->nameLen, NULL); in CachedParameterCheck()
/base/startup/init/interfaces/innerkits/include/fs_manager/
Dfs_manager.h87 …BlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int nameLen);
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dglobal_utils.h94 uint16_t nameLen; member
/base/startup/init/services/param/include/
Dparam_common.h129 uint32_t nameLen; member
/base/startup/init/services/begetctl/shell/
Dshell_bas.c512 size_t nameLen = strlen(cmdInfo->name) + 1; in BShellEnvRegisterCmd() local
513 BShellCommand *cmd = (BShellCommand *)calloc(1, sizeof(BShellCommand) + nameLen); in BShellEnvRegisterCmd()
519 ret = strcpy_s(cmd->name, nameLen, cmdInfo->name); in BShellEnvRegisterCmd()
532 if (cmdInfo->multikey != NULL && strlen(cmdInfo->multikey) > nameLen) { in BShellEnvRegisterCmd()
675 size_t nameLen = strlen(name) + 1; in BShellEnvSetParam() local
676 param = (BShellParam *)calloc(1, sizeof(BShellParam) + nameLen); in BShellEnvSetParam()
679 ret = strcpy_s(param->name, nameLen, name); in BShellEnvSetParam()
/base/powermgr/power_manager/frameworks/native/
Dpower_mgr_client.cpp200 …uint32_t nameLen = (name.size() > RunningLock::MAX_NAME_LEN) ? RunningLock::MAX_NAME_LEN : name.si… in CreateRunningLock() local
201 …tr<RunningLock> runningLock = std::make_shared<RunningLock>(proxy_, name.substr(0, nameLen), type); in CreateRunningLock()
/base/update/updater/services/ptable_parse/
Dptable.cpp449 std::string &name, const uint32_t nameLen) in ParsePartitionName() argument
451 if (data == nullptr || dataLen == 0 || nameLen == 0) { in ParsePartitionName()
463 …for (uint32_t n = 0; n < nameLen && n < (MAX_GPT_NAME_SIZE / 2) && utf16Name[n * 2] != '\0'; n++) { in ParsePartitionName()
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.cpp293 size_t nameLen = 0; in PackStream() local
296 }, nameLen); in PackStream()
298 size_t headerLen = nameLen + sizeof(LocalFileHeader); in PackStream()
322 ret = EncodeLocalFileHeader(buff.data(), sizeof(LocalFileHeader), hasDataDesc, nameLen); in PackStream()
408 size_t nameLen) in EncodeLocalFileHeader() argument
428 header->nameSize = nameLen; in EncodeLocalFileHeader()
/base/security/selinux_adapter/test/unittest/parameter_static/
Dunit_test.cpp51 tmp->nameLen = name.size(); in GenerateParamHashNode()
/base/startup/init/services/param/manager/
Dparam_manager.c593 size_t nameLen = strlen(name); in CheckParamName() local
594 if (nameLen >= PARAM_NAME_LEN_MAX) { in CheckParamName()
601 if (nameLen < 1 || name[0] == '.' || (!info && name[nameLen - 1] == '.')) { in CheckParamName()
608 for (size_t i = 0; i < nameLen; i++) { in CheckParamName()
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
Dx509_certificate_openssl.c768 uint32_t nameLen = strlen(str) + 1; in DeepCopyAlternativeNames() local
769 outName->data[i].data = (uint8_t *)HcfMalloc(nameLen, 0); in DeepCopyAlternativeNames()
774 (void)memcpy_s(outName->data[i].data, nameLen, str, nameLen); in DeepCopyAlternativeNames()
775 outName->data[i].size = nameLen; in DeepCopyAlternativeNames()
/base/startup/init/test/unittest/init/
Dgroup_unittest.cpp53 size_t nameLen = strlen(testNode->name); in TestHashNodeFunction() local
54 for (size_t i = 0; i < nameLen; i++) { in TestHashNodeFunction()

12