Lines Matching refs:he
145 struct hostent *he, struct hostent_data *hed, res_state statp)
160 he->h_name = NULL;
204 he->h_name = bp;
207 qname = he->h_name;
211 he->h_aliases = hed->host_aliases;
214 he->h_addr_list = hed->h_addr_ptrs;
270 he->h_name = bp;
325 he->h_name = bp;
340 he->h_name = bp;
348 _map_v4v6_hostent(he, &bp, ep);
355 if (strcasecmp(he->h_name, bp) != 0) {
357 AskedForGot, he->h_name, bp);
361 if (n != he->h_length) {
368 he->h_name = bp;
417 if (!he->h_name) {
422 he->h_name = bp;
426 _map_v4v6_hostent(he, &bp, ep);
439 struct hostent *he;
445 if ((he = __hostent_init()) == NULL ||
452 he->h_addrtype = AF_INET6;
453 he->h_length = NS_IN6ADDRSZ;
457 he->h_addrtype = AF_INET;
458 he->h_length = NS_INADDRSZ;
463 he, hed, statp);
464 return (error == 0) ? he : NULL;
475 struct hostent *hptr, he;
498 he.h_addrtype = af;
501 he.h_length = NS_INADDRSZ;
505 he.h_length = NS_IN6ADDRSZ;
532 error = gethostanswer(buf, n, name, type, &he, hed, statp);
546 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {
567 struct hostent *hptr, he;
640 if (gethostanswer(buf, n, qbuf, T_PTR, &he, hed, statp) != 0) {
660 strncpy(hname2, he.h_name, MAXDNAME);
695 he.h_addrtype = af;
696 he.h_length = len;
702 he.h_addrtype = AF_INET6;
703 he.h_length = NS_IN6ADDRSZ;
705 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {