Lines Matching refs:hp
204 struct hostent *hp;
210 hp = ho_byname2(this, name, AF_INET6);
211 if (hp)
212 return (hp);
220 struct hostent *hp;
229 while ((hp = ho_next(this)) != NULL) {
232 if (hp->h_addrtype != af)
234 nn = ns_namelen(hp->h_name);
235 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0)
237 for (hap = hp->h_aliases; *hap; hap++) {
244 if (!hp) {
249 return (hp);
256 struct hostent *hp;
293 while ((hp = ho_next(this)) != NULL) {
296 for (hap = hp->h_addr_list; *hap; hap++) {
298 int taf = hp->h_addrtype;
299 int tlen = hp->h_length;
315 if (!hp) {
320 return (hp);
501 struct hostent *hp;
530 hp = (*this->byname2)(this, name, p->family);
531 if (hp == NULL) {
535 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
536 (hp->h_addr_list[0] == NULL)) {
541 ai = hostent2addrinfo(hp, pai);