Lines Matching defs:he
91 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped,
134 he->h_addr_list = hed->h_addr_ptrs;
135 he->h_length = len;
136 he->h_addrtype = af;
141 he->h_name = bp;
142 q = he->h_aliases = hed->host_aliases;
180 struct hostent he;
194 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0)
196 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {
228 struct hostent *hptr, he;
252 while ((error = gethostent_p(&he, hed, 0, statp)) == 0) {
253 if (he.h_addrtype != af)
255 if (he.h_addrtype == AF_INET &&
257 _map_v4v6_address(he.h_addr, he.h_addr);
258 he.h_length = IN6ADDRSZ;
259 he.h_addrtype = AF_INET6;
261 if (strcasecmp(he.h_name, name) == 0)
263 for (cp = he.h_aliases; *cp != 0; cp++)
274 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {
293 struct hostent *hptr, he;
317 while ((error = gethostent_p(&he, hed, 0, statp)) == 0)
318 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) {
319 if (he.h_addrtype == AF_INET &&
321 _map_v4v6_address(he.h_addr, he.h_addr);
322 he.h_length = IN6ADDRSZ;
323 he.h_addrtype = AF_INET6;
331 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {