Lines Matching refs:he
141 struct hostent *he, struct hostent_data *hed, res_state statp)
156 he->h_name = NULL;
200 he->h_name = bp;
203 qname = he->h_name;
207 he->h_aliases = hed->host_aliases;
210 he->h_addr_list = hed->h_addr_ptrs;
266 he->h_name = bp;
321 he->h_name = bp;
336 he->h_name = bp;
344 _map_v4v6_hostent(he, &bp, ep);
351 if (strcasecmp(he->h_name, bp) != 0) {
353 AskedForGot, he->h_name, bp);
357 if (n != he->h_length) {
364 he->h_name = bp;
413 if (!he->h_name) {
418 he->h_name = bp;
422 _map_v4v6_hostent(he, &bp, ep);
435 struct hostent *he;
441 if ((he = __hostent_init()) == NULL ||
448 he->h_addrtype = AF_INET6;
449 he->h_length = NS_IN6ADDRSZ;
453 he->h_addrtype = AF_INET;
454 he->h_length = NS_INADDRSZ;
459 he, hed, statp);
460 return (error == 0) ? he : NULL;
471 struct hostent *hptr, he;
494 he.h_addrtype = af;
497 he.h_length = NS_INADDRSZ;
501 he.h_length = NS_IN6ADDRSZ;
528 error = gethostanswer(buf, n, name, type, &he, hed, statp);
542 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {
563 struct hostent *hptr, he;
636 if (gethostanswer(buf, n, qbuf, T_PTR, &he, hed, statp) != 0) {
656 strncpy(hname2, he.h_name, MAXDNAME);
691 he.h_addrtype = af;
692 he.h_length = len;
698 he.h_addrtype = AF_INET6;
699 he.h_length = NS_IN6ADDRSZ;
701 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {