Lines Matching full:he
87 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, in gethostent_p() argument
130 he->h_addr_list = hed->h_addr_ptrs; in gethostent_p()
131 he->h_length = len; in gethostent_p()
132 he->h_addrtype = af; in gethostent_p()
137 he->h_name = bp; in gethostent_p()
138 q = he->h_aliases = hed->host_aliases; in gethostent_p()
176 struct hostent he; in gethostent_r() local
190 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
192 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r()
224 struct hostent *hptr, he; in _ht_gethostbyname() local
248 while ((error = gethostent_p(&he, hed, 0, statp)) == 0) { in _ht_gethostbyname()
249 if (he.h_addrtype != af) in _ht_gethostbyname()
251 if (he.h_addrtype == AF_INET && in _ht_gethostbyname()
253 _map_v4v6_address(he.h_addr, he.h_addr); in _ht_gethostbyname()
254 he.h_length = IN6ADDRSZ; in _ht_gethostbyname()
255 he.h_addrtype = AF_INET6; in _ht_gethostbyname()
257 if (strcasecmp(he.h_name, name) == 0) in _ht_gethostbyname()
259 for (cp = he.h_aliases; *cp != 0; cp++) in _ht_gethostbyname()
270 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyname()
289 struct hostent *hptr, he; in _ht_gethostbyaddr() local
313 while ((error = gethostent_p(&he, hed, 0, statp)) == 0) in _ht_gethostbyaddr()
314 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) { in _ht_gethostbyaddr()
315 if (he.h_addrtype == AF_INET && in _ht_gethostbyaddr()
317 _map_v4v6_address(he.h_addr, he.h_addr); in _ht_gethostbyaddr()
318 he.h_length = IN6ADDRSZ; in _ht_gethostbyaddr()
319 he.h_addrtype = AF_INET6; in _ht_gethostbyaddr()
327 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyaddr()