Lines Matching defs:hp
40 puthostent(const struct hostent *hp, FILE *fp)
45 if (hp == NULL) {
49 for (p = hp->h_addr_list; *p != 0; p++) {
55 inet_ntoa(in), hp->h_name) == EOF)
57 for (q = hp->h_aliases; *q != 0; q++) {
73 struct hostent *hp;
77 while ((hp = gethostent()) != NULL)
78 (void) puthostent(hp, stdout);
84 hp = gethostbyaddr((char *)&addr,
87 hp = gethostbyname(*list);
88 if (hp == NULL)
91 (void) puthostent(hp, stdout);