/kernel/liteos_a/testsuites/unittest/common/include/ |
D | iCunit.h | 221 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 223 if (strncmp((str1), (str2), (strsize)) != 0) { \ 246 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL_VOID(str1, str2, size, retcode) \ argument 248 if (strncmp(str1, str2, size) != 0) { \ 257 #define ICUNIT_ASSERT_SIZE_STRING_NOT_EQUAL(str1, str2, size, retcode) \ argument 259 if (strncmp(str1, str2, size) == 0) { \ 269 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 271 if (strcmp(str1, str2) != 0) { \ 280 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 282 if (strcmp(str1, str2) != 0) { \ [all …]
|
/kernel/liteos_m/testsuites/include/ |
D | iCunit.h | 284 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 286 if (strncmp((str1), (str2), (strsize)) != 0) { \ 292 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 294 if (strcmp(str1, str2) != 0) { \ 300 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 302 if (strcmp((const char *)str1, (const char *)str2) != 0) { \ 308 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument 310 if (strcmp(str1, str2) == 0) { \ 332 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument 334 if (strcmp(str1, str2) != 0) { \ [all …]
|
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
D | sys_test_027.cpp | 43 char *str1 = "/storage/1.txt"; in TestCase() local 46 fd = open(str1, O_CREAT); in TestCase() 54 ret1 = ftok(str1, id1); in TestCase() 56 ret2 = ftok(str1, id2); in TestCase() 59 ret2 = ftok(str1, id1); in TestCase()
|
/kernel/liteos_a/testsuites/kernel/include/ |
D | iCunit.h | 327 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 329 if (strncmp((str1), (str2), (strsize)) != 0) { \ 343 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 345 if (strcmp(str1, str2) != 0) { \ 351 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 353 if (strcmp(str1, str2) != 0) { \ 359 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument 361 if (strcmp(str1, str2) == 0) { \ 399 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument 401 if (strcmp(str1, str2) != 0) { \ [all …]
|
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
D | net_resolv_test_006.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoaTest() local 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest() 54 … ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", buf)); in EtherNtoaTest()
|
D | net_resolv_test_007.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoarTest() local 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest() 54 ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", p)); in EtherNtoarTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/regex/ |
D | it_test_regex_fuzz.c | 61 char str1[MAX_STR_BUF_LEN] = {0}; in RegexFuzz() local 74 (void)strncpy_s(str1, MAX_STR_BUF_LEN, string1, maxStrLen); in RegexFuzz() 75 str1[MAX_STR_BUF_LEN - 1] = '\0'; in RegexFuzz() 85 ret = regcomp(&preg, str1, num); in RegexFuzz()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_global_data.c | 48 static char str1[32] = "abcdefghijklmnopqrstuvwxyz"; variable 88 test_reloc(string, 1, str1); in load_static_data() 90 str1[5] = 'x'; in load_static_data() 91 test_reloc(string, 3, str1); in load_static_data()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | probe_read_user_str.c | 5 static const char str1[] = "mestring"; variable 62 if (test_one_str(skel, str1, sizeof(str1))) in test_probe_read_user_str()
|
D | varlen.c | 18 const char str1[] = "Hello, "; in test_varlen() local 21 const int size1 = sizeof(str1); in test_varlen() 37 memcpy(bss->buf_in1, str1, size1); in test_varlen()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/ |
D | sys_test_029.cpp | 39 char *str1 = "/storage/1"; in TestCase() local 43 ret1 = ftok(str1, id); in TestCase()
|
/kernel/linux/linux-5.10/arch/arm64/lib/ |
D | copy_template.S | 67 str1 tmp1w, dst, #4 71 str1 tmp1, dst, #8 112 str1 tmp1, dst, #8 116 str1 tmp1w, dst, #4
|
D | memcpy.S | 47 .macro str1 reg, ptr, val macro
|
D | copy_to_user.S | 42 .macro str1 reg, ptr, val macro
|
D | copy_from_user.S | 43 .macro str1 reg, ptr, val macro
|
D | copy_in_user.S | 44 .macro str1 reg, ptr, val macro
|
/kernel/liteos_a/lib/libc/musl/src/ |
D | memcmp.c | 37 int memcmp(const void *str1, const void *str2, size_t n) in memcmp() argument 40 const unsigned char *s1 = str1; in memcmp()
|
/kernel/liteos_a/testsuites/unittest/libc/io/smoke/ |
D | IO_test_008.cpp | 48 CHAR *str1 = "123456789"; in Testcase() local 70 ICUNIT_GOTO_STRING_EQUAL(buffer, str1, buffer, EXIT2); in Testcase()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | md-autodetect.c | 64 char *str1; in md_setup() local 75 str1 = str; in md_setup() 107 str = str1; in md_setup()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
D | cbe_thermal.c | 300 union spe_reg str1; in init_default_values() local 322 str1.val = 0x1010101010101010ull; in init_default_values() 355 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
D | string.c | 48 int strcmp(const char *str1, const char *str2) in strcmp() argument 50 const unsigned char *s1 = (const unsigned char *)str1; in strcmp()
|
D | string.h | 19 extern int strcmp(const char *str1, const char *str2);
|
/kernel/liteos_a/lib/libc/musl/src/arch/arm/ |
D | memcmp.S | 39 @ r0 = str1 55 ldrb r3, [r0] @ r3 = *str1
|
/kernel/linux/linux-5.10/arch/arc/lib/ |
D | strcmp-archs.S | 21 ;; Detect NULL char in str1
|
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/ |
D | isst.h | 212 unsigned int val, char *str0, char *str1);
|