Searched refs:ares_malloc (Results 1 – 25 of 27) sorted by relevance
12
84 aliases = ares_malloc(alias_alloc * sizeof(char *)); in ares_parse_ptr_reply()129 aliases[aliascnt] = ares_malloc(rr_data_len * sizeof(char)); in ares_parse_ptr_reply()179 hostent = ares_malloc(sizeof(struct hostent)); in ares_parse_ptr_reply()182 hostent->h_addr_list = ares_malloc(2 * sizeof(char *)); in ares_parse_ptr_reply()185 hostent->h_addr_list[0] = ares_malloc(addrlen); in ares_parse_ptr_reply()188 hostent->h_aliases = ares_malloc((aliascnt+1) * sizeof (char *)); in ares_parse_ptr_reply()
82 nameservers = ares_malloc( ( ancount + 1 ) * sizeof( char * ) ); in ares_parse_ns_reply()126 nameservers[nameservers_num] = ares_malloc(strlen(rr_data)+1); in ares_parse_ns_reply()159 hostent = ares_malloc( sizeof( struct hostent ) ); in ares_parse_ns_reply()162 hostent->h_addr_list = ares_malloc( 1 * sizeof( char * ) ); in ares_parse_ns_reply()
167 hostent = ares_malloc(sizeof(struct hostent)); in ares__get_hostent()181 hostent->h_addr_list = ares_malloc(2 * sizeof(char *)); in ares__get_hostent()185 hostent->h_addr_list[0] = ares_malloc(addrlen); in ares__get_hostent()194 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent()
53 void *(*ares_malloc)(size_t size) = default_malloc; variable157 ares_malloc = amalloc; in ares_library_init_mem()182 ares_malloc = malloc; in ares_library_cleanup()
98 addrs = ares_malloc(ancount * sizeof(struct ares_in6_addr)); in ares_parse_aaaa_reply()104 aliases = ares_malloc((ancount + 1) * sizeof(char *)); in ares_parse_aaaa_reply()231 hostent = ares_malloc(sizeof(struct hostent)); in ares_parse_aaaa_reply()234 hostent->h_addr_list = ares_malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
97 addrs = ares_malloc(ancount * sizeof(struct in_addr)); in ares_parse_a_reply()103 aliases = ares_malloc((ancount + 1) * sizeof(char *)); in ares_parse_a_reply()231 hostent = ares_malloc(sizeof(struct hostent)); in ares_parse_a_reply()234 hostent->h_addr_list = ares_malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply()
26 if (ares_malloc == malloc) in ares_strdup()39 s2 = ares_malloc(sz * sizeof(char)); in ares_strdup()
50 query = ares_malloc(sizeof(struct query)); in ares_send()56 query->tcpbuf = ares_malloc(qlen + 2); in ares_send()69 query->server_info = ares_malloc(channel->nservers * in ares_send()
169 channel->servers = ares_malloc(num_srvrs * sizeof(struct server_state)); in ares_set_servers()221 channel->servers = ares_malloc(num_srvrs * sizeof(struct server_state)); in ares_set_servers_ports()271 csv = ares_malloc(i + 2); in set_servers_csv()342 s = ares_malloc(sizeof(*s)); in set_servers_csv()352 s = ares_malloc(sizeof(*s)); in set_servers_csv()
135 channel = ares_malloc(sizeof(struct ares_channeldata)); in ares_init_options()382 options->servers = ares_malloc(ipv4_nservers * sizeof(struct in_addr)); in ares_save_options()400 options->domains = ares_malloc(channel->ndomains * sizeof(char *)); in ares_save_options()423 options->sortlist = ares_malloc(channel->nsort * sizeof(struct apattern)); in ares_save_options()488 ares_malloc(options->nservers * sizeof(struct server_state)); in init_by_options()512 channel->domains = ares_malloc(options->ndomains * sizeof(char *)); in init_by_options()537 channel->sortlist = ares_malloc(options->nsort * sizeof(struct apattern)); in init_by_options()612 *outptr = ares_malloc(size+1); in get_REG_SZ()654 *outptr = ares_malloc(size+1); in get_REG_SZ_9X()912 fi = ares_malloc(size); in get_DNS_NetworkParams()[all …]
110 temp = ares_malloc(nelms * sizeof(*temp)); in ares_strsplit()131 out = ares_malloc(nelms * sizeof(*out)); in ares_strsplit()
83 squery = ares_malloc(sizeof(struct search_query)); in ares_search()221 *s = ares_malloc(nlen + 1 + dlen + 1); in cat_domain()278 *s = ares_malloc(q - p + 1); in single_domain()
57 *s = ares_malloc(elen.uns+1); in ares_expand_string()
39 *buf = ares_malloc(128); in ares__read_line()
57 buffer = ares_malloc(bytes); in ares_writev()
111 buf = ares_malloc(len); in ares_create_query()
80 *s = ares_malloc(nlen.uns + 1); in ares_expand_name()
320 dns_list = ares_malloc(sizeof(*dns_list)*(*num_servers)); in ares_get_android_server_list()325 dns_list[i] = ares_malloc(64); in ares_get_android_server_list()
157 txt_curr->txt = ares_malloc (substr_len + 1/* Including null byte */); in ares__parse_txt_reply()
132 qquery = ares_malloc(sizeof(struct qquery)); in ares_query()
337 extern void *(*ares_malloc)(size_t size);
254 vec = ares_malloc(n * sizeof(struct iovec)); in write_tcp_data()420 server->tcp_buffer = ares_malloc(server->tcp_length); in read_tcp_data()827 sendreq = ares_malloc(sizeof(struct send_request)); in ares__send_query()1412 sendreq->data_storage = ares_malloc(sendreq->len); in end_query()
147 ptr = ares_malloc(sizeof(struct ares_data)); in ares_malloc_data()
82 aquery = ares_malloc(sizeof(struct addr_query)); in ares_gethostbyaddr()
166 niquery = ares_malloc(sizeof(struct nameinfo_query)); in ares_getnameinfo()