Lines Matching refs:hostent
55 struct hostent **host, in ares_parse_a_reply()
66 struct hostent *hostent; in ares_parse_a_reply() local
230 hostent = malloc(sizeof(struct hostent)); in ares_parse_a_reply()
231 if (hostent) in ares_parse_a_reply()
233 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply()
234 if (hostent->h_addr_list) in ares_parse_a_reply()
237 hostent->h_name = hostname; in ares_parse_a_reply()
238 hostent->h_aliases = aliases; in ares_parse_a_reply()
239 hostent->h_addrtype = AF_INET; in ares_parse_a_reply()
240 hostent->h_length = sizeof(struct in_addr); in ares_parse_a_reply()
242 hostent->h_addr_list[i] = (char *) &addrs[i]; in ares_parse_a_reply()
243 hostent->h_addr_list[naddrs] = NULL; in ares_parse_a_reply()
246 *host = hostent; in ares_parse_a_reply()
249 free(hostent); in ares_parse_a_reply()