/bionic/tests/ |
H A D | sys_random_test.cpp | 40 char buf2[64]; local 43 ASSERT_EQ(0, getentropy(buf2, sizeof(buf2))); 44 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0); 76 char buf2[64]; local 79 ASSERT_EQ(64, getrandom(buf2, sizeof(buf2), 0)); 80 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) != 0);
|
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 | 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 | 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 | fcntl_test.cpp | 242 char buf2[BUFSIZ]; local 245 ASSERT_TRUE(fgets(buf2, sizeof(buf2), fp2) != NULL); 249 ASSERT_STREQ(expected, 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...] |
H A D | iconv_test.cpp | 324 char buf2[BUFSIZ] = {}; local 325 out = buf2; 326 out_bytes = sizeof(buf2); 329 ASSERT_STREQ(utf8, buf2) << dst_enc;
|
H A D | stdio_test.cpp | 1615 char buf2[BUFSIZ]; local 1616 ASSERT_EQ(8U, fread(buf2, 1, sizeof(buf2), fp)); 1637 char buf2[8]; local 1638 memset(buf2, 'x', sizeof(buf2)); 1639 ASSERT_EQ(4U, fread(buf2, 1, sizeof(buf2), fp)); 1640 ASSERT_EQ('l', buf2[0]); 1641 ASSERT_EQ(0, buf2[ 1934 char buf2[4 * 4096]; local [all...] |
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 1898 querybuf *buf, *buf2; local 1921 buf2 = malloc(sizeof(*buf2)); 1922 if (buf2 == NULL) { 1947 q2.answer = buf2->buf; 1948 q2.anslen = sizeof(buf2->buf); 1954 free(buf2); 1974 free(buf2); 1981 free(buf2); 1994 free(buf2); [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_send.c | 312 * res_queriesmatch(buf1, eom1, buf2, eom2) 314 * in (buf1,eom1) and (buf2,eom2)? 324 const u_char *buf2, const u_char *eom2) 329 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) 337 (((const HEADER *)(const void *)buf2)->opcode == ns_o_update)) 340 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount)) 354 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2)) 323 res_queriesmatch(const u_char *buf1, const u_char *eom1, const u_char *buf2, const u_char *eom2) argument
|