Home
last modified time | relevance | path

Searched refs:SYSCAP_MAX_SIZE (Results 1 – 2 of 2) sorted by relevance

/base/startup/init/interfaces/innerkits/syscap/
Dinit_syscap.c26 #define SYSCAP_MAX_SIZE 100 macro
32 char capName[SYSCAP_MAX_SIZE] = { 0 }; in HasSystemCapability()
42 if (snprintf_s(capName, SYSCAP_MAX_SIZE, SYSCAP_MAX_SIZE - 1, "const.%s", cap) == -1) { in HasSystemCapability()
46 …} else if (snprintf_s(capName, SYSCAP_MAX_SIZE, SYSCAP_MAX_SIZE - 1, CONST_SYSCAP_PREFIX_NAME".%s"… in HasSystemCapability()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp257 #define SYSCAP_MAX_SIZE 100 macro
270 char *wrongName = reinterpret_cast<char *>(malloc(SYSCAP_MAX_SIZE));
272 EXPECT_EQ(memset_s(wrongName, SYSCAP_MAX_SIZE, 1, SYSCAP_MAX_SIZE), 0);