Lines Matching defs:hp
451 struct hostent *hp;
454 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
455 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
456 GET_AI(cur, afd, hp->h_addr_list[0], port);
457 GET_CANONNAME(cur, hp->h_name);
546 struct hostent *hp;
561 hp = gethostbyname2(hostname, af);
567 hp = gethostbyname(hostname);
571 if (hp == NULL) {
589 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
590 (hp->h_addr_list[0] == NULL))
593 for (i = 0; (ap = hp->h_addr_list[i]) != NULL; i++) {
620 GET_CANONNAME(top, hp->h_name);