Home
last modified time | relevance | path

Searched refs:ares_malloc (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_parse_ptr_reply.c84 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()
Dares_parse_ns_reply.c82 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()
Dares__get_hostent.c167 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()
Dares_library_init.c53 void *(*ares_malloc)(size_t size) = default_malloc; variable
157 ares_malloc = amalloc; in ares_library_init_mem()
182 ares_malloc = malloc; in ares_library_cleanup()
Dares_parse_aaaa_reply.c98 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()
Dares_parse_a_reply.c97 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()
Dares_strdup.c26 if (ares_malloc == malloc) in ares_strdup()
39 s2 = ares_malloc(sz * sizeof(char)); in ares_strdup()
Dares_send.c50 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()
Dares_options.c169 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()
Dares_init.c135 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 …]
Dares_strsplit.c110 temp = ares_malloc(nelms * sizeof(*temp)); in ares_strsplit()
131 out = ares_malloc(nelms * sizeof(*out)); in ares_strsplit()
Dares_search.c83 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()
Dares_expand_string.c57 *s = ares_malloc(elen.uns+1); in ares_expand_string()
Dares__read_line.c39 *buf = ares_malloc(128); in ares__read_line()
Dares_writev.c57 buffer = ares_malloc(bytes); in ares_writev()
Dares_create_query.c111 buf = ares_malloc(len); in ares_create_query()
Dares_expand_name.c80 *s = ares_malloc(nlen.uns + 1); in ares_expand_name()
Dares_android.c320 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()
Dares_parse_txt_reply.c157 txt_curr->txt = ares_malloc (substr_len + 1/* Including null byte */); in ares__parse_txt_reply()
Dares_query.c132 qquery = ares_malloc(sizeof(struct qquery)); in ares_query()
Dares_private.h337 extern void *(*ares_malloc)(size_t size);
Dares_process.c254 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()
Dares_data.c147 ptr = ares_malloc(sizeof(struct ares_data)); in ares_malloc_data()
Dares_gethostbyaddr.c82 aquery = ares_malloc(sizeof(struct addr_query)); in ares_gethostbyaddr()
Dares_getnameinfo.c166 niquery = ares_malloc(sizeof(struct nameinfo_query)); in ares_getnameinfo()

12