Lines Matching full:he
136 struct hostent *he, struct hostent_data *hed, res_state statp) in gethostanswer() argument
151 he->h_name = NULL; in gethostanswer()
195 he->h_name = bp; in gethostanswer()
198 qname = he->h_name; in gethostanswer()
202 he->h_aliases = hed->host_aliases; in gethostanswer()
205 he->h_addr_list = hed->h_addr_ptrs; in gethostanswer()
261 he->h_name = bp; in gethostanswer()
319 he->h_name = bp; in gethostanswer()
334 he->h_name = bp; in gethostanswer()
342 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
349 if (strcasecmp(he->h_name, bp) != 0) { in gethostanswer()
351 AskedForGot, he->h_name, bp); in gethostanswer()
355 if (n != he->h_length) { in gethostanswer()
362 he->h_name = bp; in gethostanswer()
411 if (!he->h_name) { in gethostanswer()
416 he->h_name = bp; in gethostanswer()
420 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
433 struct hostent *he; in __dns_getanswer() local
439 if ((he = __hostent_init()) == NULL || in __dns_getanswer()
446 he->h_addrtype = AF_INET6; in __dns_getanswer()
447 he->h_length = NS_IN6ADDRSZ; in __dns_getanswer()
451 he->h_addrtype = AF_INET; in __dns_getanswer()
452 he->h_length = NS_INADDRSZ; in __dns_getanswer()
457 he, hed, statp); in __dns_getanswer()
458 return (error == 0) ? he : NULL; in __dns_getanswer()
469 struct hostent *hptr, he; in _dns_gethostbyname() local
492 he.h_addrtype = af; in _dns_gethostbyname()
495 he.h_length = NS_INADDRSZ; in _dns_gethostbyname()
499 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyname()
526 error = gethostanswer(buf, n, name, type, &he, hed, statp); in _dns_gethostbyname()
540 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyname()
561 struct hostent *hptr, he; in _dns_gethostbyaddr() local
634 if (gethostanswer(buf, n, qbuf, T_PTR, &he, hed, statp) != 0) { in _dns_gethostbyaddr()
654 strncpy(hname2, he.h_name, MAXDNAME); in _dns_gethostbyaddr()
689 he.h_addrtype = af; in _dns_gethostbyaddr()
690 he.h_length = len; in _dns_gethostbyaddr()
696 he.h_addrtype = AF_INET6; in _dns_gethostbyaddr()
697 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyaddr()
699 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyaddr()