Lines Matching defs:hp
39 puthostent(const struct hostent *hp, FILE *fp)
45 if (hp == NULL) {
49 for (p = hp->h_addr_list; *p != 0; p++) {
56 if (hp->h_addrtype == AF_INET6) {
75 if (fprintf(fp, "%s\t%s", res, hp->h_name) == EOF)
77 for (q = hp->h_aliases; q && *q; q++) {
93 struct hostent *hp;
116 hp = getipnodebyaddr(addr, len, af, &err_ret);
118 hp = getipnodebyname(
123 if (hp == NULL)
126 (void) puthostent(hp, stdout);