• Home
  • Raw
  • Download

Lines Matching refs:hent

202     res_state res, struct hostent *hent, char *buf, size_t buflen, int *he)  in getanswer()  argument
224 hent->h_name = NULL; in getanswer()
266 hent->h_name = bp; in getanswer()
269 qname = hent->h_name; in getanswer()
271 hent->h_aliases = ap = aliases; in getanswer()
272 hent->h_addr_list = hap = addr_ptrs; in getanswer()
323 hent->h_name = bp; in getanswer()
375 hent->h_name = bp; in getanswer()
388 hent->h_name = bp; in getanswer()
396 map_v4v6_hostent(hent, &bp, ep); in getanswer()
402 if (strcasecmp(hent->h_name, bp) != 0) { in getanswer()
404 AskedForGot, hent->h_name, bp); in getanswer()
408 if (n != hent->h_length) { in getanswer()
423 hent->h_name = bp; in getanswer()
466 if (!hent->h_name) { in getanswer()
471 hent->h_name = bp; in getanswer()
475 map_v4v6_hostent(hent, &bp, ep); in getanswer()
485 qlen = (n + 1) * sizeof(*hent->h_aliases); in getanswer()
488 hent->h_aliases = (void *)bp; in getanswer()
495 qlen = (n + 1) * sizeof(*hent->h_addr_list); in getanswer()
498 hent->h_addr_list = (void *)bp; in getanswer()
501 return hent; in getanswer()
960 netbsd_gethostent_r(FILE *hf, struct hostent *hent, char *buf, size_t buflen, int *he) in netbsd_gethostent_r() argument
1026 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in netbsd_gethostent_r()
1028 if (hent->h_length != 0 && hent->h_length != len) in netbsd_gethostent_r()
1047 hent->h_length = len; in netbsd_gethostent_r()
1048 hent->h_addrtype = af; in netbsd_gethostent_r()
1049 HENT_ARRAY(hent->h_addr_list, 1, buf, buflen); in netbsd_gethostent_r()
1051 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in netbsd_gethostent_r()
1052 HENT_COPY(hent->h_addr_list[0], &host_addr, hent->h_length, buf, in netbsd_gethostent_r()
1054 hent->h_addr_list[1] = NULL; in netbsd_gethostent_r()
1056 HENT_SCOPY(hent->h_name, name, buf, buflen); in netbsd_gethostent_r()
1058 HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in netbsd_gethostent_r()
1059 hent->h_aliases[anum] = NULL; in netbsd_gethostent_r()
1064 return hent; in netbsd_gethostent_r()