Home
last modified time | relevance | path

Searched refs:MAX_PROCESS_NAME_LEN (Results 1 – 5 of 5) sorted by relevance

/base/security/access_token/interfaces/innerkits/nativetoken/include/
Dnativetoken.h25 #define MAX_PROCESS_NAME_LEN 256 macro
85 char processName[MAX_PROCESS_NAME_LEN + 1];
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/
Dnativetoken_oper_test.cpp104 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
131 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
163 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
209 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
260 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
319 (void)strcpy_s(tokenNode.processName, MAX_PROCESS_NAME_LEN + 1, "process5");
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c35 (strlen(processNameJson->valuestring) > MAX_PROCESS_NAME_LEN)) { in GetProcessNameFromJson()
40 …if (strcpy_s(tokenNode->processName, MAX_PROCESS_NAME_LEN + 1, processNameJson->valuestring) != EO… in GetProcessNameFromJson()
Dnativetoken.c415 if ((tokenInfo->processName == NULL) || strlen(tokenInfo->processName) > MAX_PROCESS_NAME_LEN || in CheckProcessInfo()
481 if (strcpy_s(tokenNode->processName, MAX_PROCESS_NAME_LEN + 1, tokenInfo->processName) != EOK) { in AddNewTokenToListAndFile()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp602 char processName[200][MAX_PROCESS_NAME_LEN];
606 int32_t ret = sprintf_s(processName[i], MAX_PROCESS_NAME_LEN, "processName_%d", i);