/bionic/tests/ |
H A D | bug_26110743_test.cpp | 31 char buf2[1024]; local 38 ASSERT_NE(-1, readlink(buf, buf2, sizeof(buf2))) << ERRORMSG; 39 ASSERT_STREQ("/dev/null", buf2); 73 char buf2[1024]; local 82 ASSERT_NE(-1, readlink(buf, buf2, sizeof(buf2))) << ERRORMSG; 83 ASSERT_STREQ("/dev/null", buf2);
|
H A D | sys_uio_test.cpp | 27 char buf2[] = "world"; local 28 iovec ios[] = { { buf1, 5 }, { buf2, 5 } }; 35 memset(buf2, '2', sizeof(buf2)); 38 buf1[5] = buf2[5] = '\0'; 40 ASSERT_STREQ("world", buf2);
|
H A D | fcntl_test.cpp | 240 char buf2[BUFSIZ]; local 243 ASSERT_TRUE(fgets(buf2, sizeof(buf2), fp2) != NULL); 247 ASSERT_STREQ(expected, buf2);
|
H A D | netdb_test.cpp | 209 char buf2[512]; local 210 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); 231 char buf2[512]; local 232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); 260 char buf2[512]; local 261 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err);
|
H A D | buffer_tests.cpp | 309 uint8_t* buf2 = new uint8_t[3*max_test_size]; local 323 buf2, g_double_aligns[i][2], g_double_aligns[i][3])); 348 delete[] buf2; 424 uint8_t* buf2 = &memory2[pagesize-i]; local 426 test_cmp_func(buf1, buf2, i); 442 uint8_t* buf2 = &memory2[pagesize-j]; local 444 test_miscmp_func(buf1, buf2, i, j);
|
H A D | stdio_test.cpp | 1089 char buf2[4 * 4096]; local 1090 memset(buf2, 0, sizeof(buf2)); 1091 ASSERT_EQ(2U, fread(buf2, 4, 4096, fp)); 1092 ASSERT_STREQ("0123456789", buf2);
|
H A D | string_test.cpp | 1290 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { argument 1294 memset(buf2, (32 + (len % 96)), len - 1); 1295 buf2[len-1] = '\0'; 1297 reinterpret_cast<char*>(buf2))); 1301 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { argument 1306 memset(buf2, c, len2 - 1); 1307 buf2[len2-1] = '\0'; 1309 reinterpret_cast<char*>(buf2))); 1321 buf2[len-1] = '\0'; 1326 reinterpret_cast<char*>(buf2))); 1343 DoMemcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) argument 1349 DoMemcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) argument [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_send.c | 311 * res_queriesmatch(buf1, eom1, buf2, eom2) 313 * in (buf1,eom1) and (buf2,eom2)? 323 const u_char *buf2, const u_char *eom2) 328 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) 336 (((const HEADER *)(const void *)buf2)->opcode == ns_o_update)) 339 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount)) 353 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2)) 322 res_queriesmatch(const u_char *buf1, const u_char *eom1, const u_char *buf2, const u_char *eom2) argument
|
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 1892 querybuf *buf, *buf2; local 1915 buf2 = malloc(sizeof(*buf2)); 1916 if (buf2 == NULL) { 1941 q2.answer = buf2->buf; 1942 q2.anslen = sizeof(buf2->buf); 1948 free(buf2); 1968 free(buf2); 1975 free(buf2); 1989 free(buf2); [all...] |