Searched refs:buf1 (Results 1 – 6 of 6) sorted by relevance
/bionic/tests/ |
D | sys_uio_test.cpp | 26 char buf1[] = "hello"; in TEST() local 28 iovec ios[] = { { buf1, 5 }, { buf2, 5 } }; in TEST() 34 memset(buf1, '1', sizeof(buf1)); in TEST() 38 buf1[5] = buf2[5] = '\0'; in TEST() 39 ASSERT_STREQ("hello", buf1); in TEST()
|
D | buffer_tests.cpp | 308 uint8_t* buf1 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest() local 320 buf1, g_double_aligns[i][0], g_double_aligns[i][1])); in RunCmpBufferAlignTest() 347 delete[] buf1; in RunCmpBufferAlignTest() 423 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest() local 426 test_cmp_func(buf1, buf2, i); in RunCmpBufferOverreadTest() 437 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest() local 444 test_miscmp_func(buf1, buf2, i, j); in RunCmpBufferOverreadTest()
|
D | fcntl_test.cpp | 234 char buf1[BUFSIZ]; in TEST() local 237 ASSERT_TRUE(fgets(buf1, sizeof(buf1), fp1) != NULL); in TEST() 246 ASSERT_STREQ(expected, buf1); in TEST()
|
D | string_test.cpp | 1290 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoStrcmpTest() argument 1292 memset(buf1, (32 + (len % 96)), len - 1); in DoStrcmpTest() 1293 buf1[len-1] = '\0'; in DoStrcmpTest() 1296 ASSERT_EQ(0, strcmp(reinterpret_cast<char*>(buf1), in DoStrcmpTest() 1301 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoStrcmpFailTest() argument 1304 memset(buf1, c, len1 - 1); in DoStrcmpFailTest() 1305 buf1[len1-1] = '\0'; in DoStrcmpFailTest() 1308 ASSERT_NE(0, strcmp(reinterpret_cast<char*>(buf1), in DoStrcmpFailTest() 1320 buf1[len-1] = '\0'; in DoStrcmpFailTest() 1324 buf1[len-2] = diff_c; in DoStrcmpFailTest() [all …]
|
D | stdio_test.cpp | 1080 char buf1[4 * 4]; in TEST() local 1081 memset(buf1, 0, sizeof(buf1)); in TEST() 1082 ASSERT_EQ(2U, fread(buf1, 4, 4, fp)); in TEST() 1083 ASSERT_STREQ("0123456789", buf1); in TEST()
|
/bionic/libc/dns/resolv/ |
D | res_send.c | 322 res_queriesmatch(const u_char *buf1, const u_char *eom1, in res_queriesmatch() argument 325 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch() 326 int qdcount = ntohs(((const HEADER*)(const void *)buf1)->qdcount); in res_queriesmatch() 328 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) in res_queriesmatch() 335 if ((((const HEADER *)(const void *)buf1)->opcode == ns_o_update) && in res_queriesmatch() 345 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
|