Home
last modified time | relevance | path

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

/bionic/tests/
Dbuffer_tests.cpp309 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()
Dfcntl_test.cpp231 char buf2[BUFSIZ]; in TEST() local
234 ASSERT_TRUE(fgets(buf2, sizeof(buf2), fp2) != NULL); in TEST()
238 ASSERT_STREQ(expected, buf2); in TEST()
Dstring_test.cpp1180 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoStrcmpTest() argument
1184 memset(buf2, (32 + (len % 96)), len - 1); in DoStrcmpTest()
1185 buf2[len-1] = '\0'; in DoStrcmpTest()
1187 reinterpret_cast<char*>(buf2))); in DoStrcmpTest()
1191 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoStrcmpFailTest() argument
1196 memset(buf2, c, len2 - 1); in DoStrcmpFailTest()
1197 buf2[len2-1] = '\0'; in DoStrcmpFailTest()
1199 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1211 buf2[len-1] = '\0'; in DoStrcmpFailTest()
1216 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
[all …]
/bionic/libc/dns/net/
Dgetaddrinfo.c1881 querybuf *buf, *buf2; in _dns_getaddrinfo() local
1905 buf2 = malloc(sizeof(*buf2)); in _dns_getaddrinfo()
1906 if (buf2 == NULL) { in _dns_getaddrinfo()
1931 q2.answer = buf2->buf; in _dns_getaddrinfo()
1932 q2.anslen = sizeof(buf2->buf); in _dns_getaddrinfo()
1938 free(buf2); in _dns_getaddrinfo()
1958 free(buf2); in _dns_getaddrinfo()
1965 free(buf2); in _dns_getaddrinfo()
1979 free(buf2); in _dns_getaddrinfo()
1989 ai = getanswer(buf2, q2.n, q2.name, q2.qtype, pai); in _dns_getaddrinfo()
[all …]
/bionic/libc/dns/resolv/
Dres_send.c326 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()