Searched refs:buf2 (Results 1 – 7 of 7) sorted by relevance
/bionic/tests/ |
D | buffer_tests.cpp | 309 uint8_t* buf2 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest() local 323 buf2, g_double_aligns[i][2], g_double_aligns[i][3])); in RunCmpBufferAlignTest() 348 delete buf2; in RunCmpBufferAlignTest() 420 uint8_t* buf2 = &memory2[pagesize-i]; in RunCmpBufferOverreadTest() local 422 test_cmp_func(buf1, buf2, i); in RunCmpBufferOverreadTest() 438 uint8_t* buf2 = &memory2[pagesize-j]; in RunCmpBufferOverreadTest() local 440 test_miscmp_func(buf1, buf2, i, j); in RunCmpBufferOverreadTest()
|
D | netdb_test.cpp | 209 char buf2[512]; in TEST() local 210 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST() 231 char buf2[512]; in TEST() local 232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST() 260 char buf2[512]; in TEST() local 261 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
|
D | fcntl_test.cpp | 231 char buf2[BUFSIZ]; in TEST() local 234 ASSERT_TRUE(fgets(buf2, sizeof(buf2), fp2) != NULL); in TEST() 238 ASSERT_STREQ(expected, buf2); in TEST()
|
D | string_test.cpp | 1259 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoStrcmpTest() argument 1263 memset(buf2, (32 + (len % 96)), len - 1); in DoStrcmpTest() 1264 buf2[len-1] = '\0'; in DoStrcmpTest() 1266 reinterpret_cast<char*>(buf2))); in DoStrcmpTest() 1270 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoStrcmpFailTest() argument 1275 memset(buf2, c, len2 - 1); in DoStrcmpFailTest() 1276 buf2[len2-1] = '\0'; in DoStrcmpFailTest() 1278 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest() 1290 buf2[len-1] = '\0'; in DoStrcmpFailTest() 1295 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest() [all …]
|
D | stdio_test.cpp | 917 char buf2[4 * 4096]; in TEST() local 918 memset(buf2, 0, sizeof(buf2)); in TEST() 919 ASSERT_EQ(2U, fread(buf2, 4, 4096, fp)); in TEST() 920 ASSERT_STREQ("0123456789", buf2); in TEST()
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 1874 querybuf *buf, *buf2; in _dns_getaddrinfo() local 1897 buf2 = malloc(sizeof(*buf2)); in _dns_getaddrinfo() 1898 if (buf2 == NULL) { in _dns_getaddrinfo() 1923 q2.answer = buf2->buf; in _dns_getaddrinfo() 1924 q2.anslen = sizeof(buf2->buf); in _dns_getaddrinfo() 1930 free(buf2); in _dns_getaddrinfo() 1950 free(buf2); in _dns_getaddrinfo() 1957 free(buf2); in _dns_getaddrinfo() 1971 free(buf2); in _dns_getaddrinfo() 1981 ai = getanswer(buf2, q2.n, q2.name, q2.qtype, pai); in _dns_getaddrinfo() [all …]
|
/bionic/libc/dns/resolv/ |
D | res_send.c | 326 const u_char *buf2, const u_char *eom2) in res_queriesmatch() argument 331 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) in res_queriesmatch() 339 (((const HEADER *)(const void *)buf2)->opcode == ns_o_update)) in res_queriesmatch() 342 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount)) in res_queriesmatch() 356 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2)) in res_queriesmatch()
|