Lines Matching refs:hent
172 static void VerifyLocalhost(hostent *hent) { in VerifyLocalhost() argument
173 ASSERT_TRUE(hent != NULL); in VerifyLocalhost()
174 VerifyLocalhostName(hent->h_name); in VerifyLocalhost()
175 for (size_t i = 0; hent->h_aliases[i] != NULL; ++i) { in VerifyLocalhost()
176 VerifyLocalhostName(hent->h_aliases[i]); in VerifyLocalhost()
178 ASSERT_EQ(hent->h_addrtype, AF_INET); in VerifyLocalhost()
179 ASSERT_EQ(hent->h_addr[0], 127); in VerifyLocalhost()
180 ASSERT_EQ(hent->h_addr[1], 0); in VerifyLocalhost()
181 ASSERT_EQ(hent->h_addr[2], 0); in VerifyLocalhost()
182 ASSERT_EQ(hent->h_addr[3], 1); in VerifyLocalhost()
196 hostent hent; in TEST() local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
218 hostent hent; in TEST() local
222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
247 hostent hent; in TEST() local
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
269 hostent hent; in TEST() local
273 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
279 hostent hent; in TEST() local
283 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
290 hostent hent; in TEST() local
294 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()