Lines Matching refs:hp
203 struct hostent *hp;
209 hp = ho_byname2(this, name, AF_INET6);
210 if (hp)
211 return (hp);
219 struct hostent *hp;
228 while ((hp = ho_next(this)) != NULL) {
231 if (hp->h_addrtype != af)
233 nn = ns_namelen(hp->h_name);
234 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0)
236 for (hap = hp->h_aliases; *hap; hap++) {
243 if (!hp) {
248 return (hp);
255 struct hostent *hp;
292 while ((hp = ho_next(this)) != NULL) {
295 for (hap = hp->h_addr_list; *hap; hap++) {
297 int taf = hp->h_addrtype;
298 int tlen = hp->h_length;
314 if (!hp) {
319 return (hp);
524 struct hostent *hp;
553 hp = (*this->byname2)(this, name, p->family);
554 if (hp == NULL) {
558 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
559 (hp->h_addr_list[0] == NULL)) {
564 ai = hostent2addrinfo(hp, pai);