Lines Matching refs:hp
186 hostent* hp = gethostbyname("localhost"); in TEST() local
187 VerifyLocalhost(hp); in TEST()
191 hostent* hp = gethostbyname2("localhost", AF_INET); in TEST() local
192 VerifyLocalhost(hp); in TEST()
197 hostent *hp; in TEST() local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
202 VerifyLocalhost(hp); in TEST()
205 hp->h_addr[0] = 0; in TEST()
214 ASSERT_EQ(0, hp->h_addr[0]); in TEST()
219 hostent *hp; in TEST() local
222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
224 VerifyLocalhost(hp); in TEST()
227 hp->h_addr[0] = 0; in TEST()
236 ASSERT_EQ(0, hp->h_addr[0]); in TEST()
241 hostent *hp = gethostbyaddr(&addr, sizeof(addr), AF_INET); in TEST() local
242 VerifyLocalhost(hp); in TEST()
248 hostent *hp; in TEST() local
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
253 VerifyLocalhost(hp); in TEST()
256 hp->h_addr[0] = 0; in TEST()
265 ASSERT_EQ(0, hp->h_addr[0]); in TEST()
270 hostent *hp; in TEST() local
273 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
276 EXPECT_EQ(nullptr, hp); in TEST()
281 hostent *hp; in TEST() local
284 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
287 EXPECT_EQ(nullptr, hp); in TEST()
293 hostent *hp; in TEST() local
296 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
299 EXPECT_EQ(nullptr, hp); in TEST()
304 hostent *hp; in TEST() local
307 int result = gethostbyname_r("does.not.exist.google.com", &hent, buf, sizeof(buf), &hp, &err); in TEST()
310 EXPECT_EQ(nullptr, hp); in TEST()
315 hostent *hp; in TEST() local
318 …int result = gethostbyname2_r("does.not.exist.google.com", AF_INET, &hent, buf, sizeof(buf), &hp, … in TEST()
321 EXPECT_EQ(nullptr, hp); in TEST()
327 hostent *hp; in TEST() local
330 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
333 EXPECT_EQ(nullptr, hp); in TEST()