Lines Matching refs:hent
217 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument
239 hent->h_name = NULL; in getanswer()
281 hent->h_name = bp; in getanswer()
284 qname = hent->h_name; in getanswer()
286 hent->h_aliases = ap = aliases; in getanswer()
287 hent->h_addr_list = hap = addr_ptrs; in getanswer()
338 hent->h_name = bp; in getanswer()
390 hent->h_name = bp; in getanswer()
403 hent->h_name = bp; in getanswer()
411 map_v4v6_hostent(hent, &bp, ep); in getanswer()
417 if (strcasecmp(hent->h_name, bp) != 0) { in getanswer()
419 AskedForGot, hent->h_name, bp); in getanswer()
423 if (n != hent->h_length) { in getanswer()
438 hent->h_name = bp; in getanswer()
481 if (!hent->h_name) { in getanswer()
486 hent->h_name = bp; in getanswer()
490 map_v4v6_hostent(hent, &bp, ep); in getanswer()
500 qlen = (n + 1) * sizeof(*hent->h_aliases); in getanswer()
503 hent->h_aliases = (void *)bp; in getanswer()
510 qlen = (n + 1) * sizeof(*hent->h_addr_list); in getanswer()
513 hent->h_addr_list = (void *)bp; in getanswer()
516 return hent; in getanswer()
928 netbsd_gethostent_r(FILE *hf, struct hostent *hent, char *buf, size_t buflen, int *he) in netbsd_gethostent_r() argument
994 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in netbsd_gethostent_r()
996 if (hent->h_length != 0 && hent->h_length != len) in netbsd_gethostent_r()
1015 hent->h_length = len; in netbsd_gethostent_r()
1016 hent->h_addrtype = af; in netbsd_gethostent_r()
1017 HENT_ARRAY(hent->h_addr_list, 1, buf, buflen); in netbsd_gethostent_r()
1019 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in netbsd_gethostent_r()
1020 HENT_COPY(hent->h_addr_list[0], &host_addr, hent->h_length, buf, in netbsd_gethostent_r()
1022 hent->h_addr_list[1] = NULL; in netbsd_gethostent_r()
1024 HENT_SCOPY(hent->h_name, name, buf, buflen); in netbsd_gethostent_r()
1026 HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in netbsd_gethostent_r()
1027 hent->h_aliases[anum] = NULL; in netbsd_gethostent_r()
1032 return hent; in netbsd_gethostent_r()