Home | History | Annotate | Download | only in getent

Lines Matching refs:he

287 hostsprint(const struct hostent *he)
291 assert(he != NULL);
292 if (inet_ntop(he->h_addrtype, he->h_addr, buf, sizeof(buf)) == NULL)
294 printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name);
300 struct hostent *he;
310 while ((he = gethostent()) != NULL)
311 hostsprint(he);
315 he = gethostbyaddr(addr, IN6ADDRSZ, AF_INET6);
317 he = gethostbyaddr(addr, INADDRSZ, AF_INET);
319 he = gethostbyname(argv[i]);
320 if (he != NULL)
321 hostsprint(he);