Lines Matching refs:he

90 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped,  in gethostent_p()  argument
133 he->h_addr_list = hed->h_addr_ptrs; in gethostent_p()
134 he->h_length = len; in gethostent_p()
135 he->h_addrtype = af; in gethostent_p()
140 he->h_name = bp; in gethostent_p()
141 q = he->h_aliases = hed->host_aliases; in gethostent_p()
179 struct hostent he; in gethostent_r() local
193 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
195 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r()
227 struct hostent *hptr, he; in _ht_gethostbyname() local
251 while ((error = gethostent_p(&he, hed, 0, statp)) == 0) { in _ht_gethostbyname()
252 if (he.h_addrtype != af) in _ht_gethostbyname()
254 if (he.h_addrtype == AF_INET && in _ht_gethostbyname()
256 _map_v4v6_address(he.h_addr, he.h_addr); in _ht_gethostbyname()
257 he.h_length = IN6ADDRSZ; in _ht_gethostbyname()
258 he.h_addrtype = AF_INET6; in _ht_gethostbyname()
260 if (strcasecmp(he.h_name, name) == 0) in _ht_gethostbyname()
262 for (cp = he.h_aliases; *cp != 0; cp++) in _ht_gethostbyname()
273 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyname()
292 struct hostent *hptr, he; in _ht_gethostbyaddr() local
316 while ((error = gethostent_p(&he, hed, 0, statp)) == 0) in _ht_gethostbyaddr()
317 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) { in _ht_gethostbyaddr()
318 if (he.h_addrtype == AF_INET && in _ht_gethostbyaddr()
320 _map_v4v6_address(he.h_addr, he.h_addr); in _ht_gethostbyaddr()
321 he.h_length = IN6ADDRSZ; in _ht_gethostbyaddr()
322 he.h_addrtype = AF_INET6; in _ht_gethostbyaddr()
330 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyaddr()