Lines Matching refs:he
141 struct hostent *he, struct hostent_data *hed, res_state statp) in gethostanswer() argument
156 he->h_name = NULL; in gethostanswer()
200 he->h_name = bp; in gethostanswer()
203 qname = he->h_name; in gethostanswer()
207 he->h_aliases = hed->host_aliases; in gethostanswer()
210 he->h_addr_list = hed->h_addr_ptrs; in gethostanswer()
266 he->h_name = bp; in gethostanswer()
324 he->h_name = bp; in gethostanswer()
339 he->h_name = bp; in gethostanswer()
347 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
354 if (strcasecmp(he->h_name, bp) != 0) { in gethostanswer()
356 AskedForGot, he->h_name, bp); in gethostanswer()
360 if (n != he->h_length) { in gethostanswer()
367 he->h_name = bp; in gethostanswer()
416 if (!he->h_name) { in gethostanswer()
421 he->h_name = bp; in gethostanswer()
425 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
438 struct hostent *he; in __dns_getanswer() local
444 if ((he = __hostent_init()) == NULL || in __dns_getanswer()
451 he->h_addrtype = AF_INET6; in __dns_getanswer()
452 he->h_length = NS_IN6ADDRSZ; in __dns_getanswer()
456 he->h_addrtype = AF_INET; in __dns_getanswer()
457 he->h_length = NS_INADDRSZ; in __dns_getanswer()
462 he, hed, statp); in __dns_getanswer()
463 return (error == 0) ? he : NULL; in __dns_getanswer()
474 struct hostent *hptr, he; in _dns_gethostbyname() local
497 he.h_addrtype = af; in _dns_gethostbyname()
500 he.h_length = NS_INADDRSZ; in _dns_gethostbyname()
504 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyname()
531 error = gethostanswer(buf, n, name, type, &he, hed, statp); in _dns_gethostbyname()
545 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyname()
566 struct hostent *hptr, he; in _dns_gethostbyaddr() local
639 if (gethostanswer(buf, n, qbuf, T_PTR, &he, hed, statp) != 0) { in _dns_gethostbyaddr()
659 strncpy(hname2, he.h_name, MAXDNAME); in _dns_gethostbyaddr()
694 he.h_addrtype = af; in _dns_gethostbyaddr()
695 he.h_length = len; in _dns_gethostbyaddr()
701 he.h_addrtype = AF_INET6; in _dns_gethostbyaddr()
702 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyaddr()
704 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyaddr()