Lines Matching refs:hps
227 struct hostent *hps, *hpc;
233 hps = gethostbyname("example.com");
234 if (hps == NULL)
237 if (hostent_compare(hps, hpc))
240 hps = gethostbyname2("example.com", AF_INET);
241 if (hps == NULL)
244 if (hostent_compare(hps, hpc))
247 hps = gethostbyname2("example.com", AF_INET6);
248 if (hps == NULL)
251 if (hostent_compare(hps, hpc))
308 hps = gethostbyaddr(&ip4, sizeof(ip4), AF_INET);
309 if (hps == NULL)
312 if (hostent_compare(hps, hpc))
316 hps = gethostbyaddr(&ip6, sizeof(ip6), AF_INET6);
317 if (hps == NULL) {
321 if (hostent_compare(hps, hpc))