Lines Matching refs:hostent
74 struct hostent *host);
77 static int file_lookup(const char *name, int family, struct hostent **host);
78 static void sort_addresses(struct hostent *host,
80 static void sort6_addresses(struct hostent *host,
135 struct hostent *host; in next_lookup()
183 struct hostent *host = NULL; in host_callback()
228 struct hostent *host) in end_hquery()
243 struct hostent hostent; in fake_hostent() local
284 hostent.h_length = (int)sizeof(struct in_addr); in fake_hostent()
289 hostent.h_length = (int)sizeof(struct ares_in6_addr); in fake_hostent()
293 hostent.h_name = strdup(name); in fake_hostent()
294 if (!hostent.h_name) in fake_hostent()
302 hostent.h_aliases = aliases; in fake_hostent()
303 hostent.h_addrtype = family; in fake_hostent()
304 hostent.h_addr_list = addrs; in fake_hostent()
305 callback(arg, ARES_SUCCESS, 0, &hostent); in fake_hostent()
307 free((char *)(hostent.h_name)); in fake_hostent()
313 int family, struct hostent **host) in ares_gethostbyname_file()
338 static int file_lookup(const char *name, int family, struct hostent **host) in file_lookup()
421 static void sort_addresses(struct hostent *host, in sort_addresses()
477 static void sort6_addresses(struct hostent *host, in sort6_addresses()