Home | History | Annotate | Download | only in tests

Lines Matching defs:hp

186   hostent* hp = gethostbyname("localhost");
187 VerifyLocalhost(hp);
191 hostent* hp = gethostbyname2("localhost", AF_INET);
192 VerifyLocalhost(hp);
197 hostent *hp;
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err);
202 VerifyLocalhost(hp);
204 // Change hp->h_addr to test reentrancy.
205 hp->h_addr[0] = 0;
214 ASSERT_EQ(0, hp->h_addr[0]);
219 hostent *hp;
222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err);
224 VerifyLocalhost(hp);
226 // Change hp->h_addr to test reentrancy.
227 hp->h_addr[0] = 0;
236 ASSERT_EQ(0, hp->h_addr[0]);
241 hostent *hp = gethostbyaddr(&addr, sizeof(addr), AF_INET);
242 VerifyLocalhost(hp);
248 hostent *hp;
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err);
253 VerifyLocalhost(hp);
255 // Change hp->h_addr to test reentrancy.
256 hp->h_addr[0] = 0;
265 ASSERT_EQ(0, hp->h_addr[0]);
270 hostent *hp;
273 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err);
275 ASSERT_EQ(NULL, hp);
280 hostent *hp;
283 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err);
285 ASSERT_EQ(NULL, hp);
291 hostent *hp;
294 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err);
296 ASSERT_EQ(NULL, hp);