Searched refs:ares_malloc (Results 1 – 25 of 31) sorted by relevance
12
78 aliases = ares_malloc(alias_alloc * sizeof(char *)); in ares_parse_ptr_reply()123 aliases[aliascnt] = ares_malloc(rr_data_len * sizeof(char)); in ares_parse_ptr_reply()176 hostent = ares_malloc(sizeof(*hostent)); in ares_parse_ptr_reply()183 hostent->h_addr_list = ares_malloc(2 * sizeof(char *)); in ares_parse_ptr_reply()189 hostent->h_addr_list[0] = ares_malloc(addrlen); in ares_parse_ptr_reply()196 hostent->h_aliases = ares_malloc((aliascnt+1) * sizeof (char *)); in ares_parse_ptr_reply()
76 nameservers = ares_malloc( ( ancount + 1 ) * sizeof( char * ) ); in ares_parse_ns_reply()120 nameservers[nameservers_num] = ares_malloc(strlen(rr_data)+1); in ares_parse_ns_reply()153 hostent = ares_malloc( sizeof( struct hostent ) ); in ares_parse_ns_reply()156 hostent->h_addr_list = ares_malloc( 1 * sizeof( char * ) ); in ares_parse_ns_reply()
166 hostent = ares_malloc(sizeof(struct hostent)); in ares__get_hostent()180 hostent->h_addr_list = ares_malloc(2 * sizeof(char *)); in ares__get_hostent()184 hostent->h_addr_list[0] = ares_malloc(addrlen); in ares__get_hostent()193 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent()
58 void *(*ares_malloc)(size_t size) = default_malloc; variable162 ares_malloc = amalloc; in ares_library_init_mem()187 ares_malloc = malloc; in ares_library_cleanup()
58 *host = ares_malloc(sizeof(**host)); in ares__addrinfo2hostent()89 aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__addrinfo2hostent()114 (*host)->h_addr_list = ares_malloc((naddrs + 1) * sizeof(char *)); in ares__addrinfo2hostent()145 addrs = ares_malloc(naddrs * (*host)->h_length); in ares__addrinfo2hostent()
44 query = ares_malloc(sizeof(struct query)); in ares_send()50 query->tcpbuf = ares_malloc(qlen + 2); in ares_send()63 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()
114 channel = ares_malloc(sizeof(struct ares_channeldata)); in ares_init_options()361 options->servers = ares_malloc(ipv4_nservers * sizeof(struct in_addr)); in ares_save_options()379 options->domains = ares_malloc(channel->ndomains * sizeof(char *)); in ares_save_options()402 options->sortlist = ares_malloc(channel->nsort * sizeof(struct apattern)); in ares_save_options()467 ares_malloc(options->nservers * sizeof(struct server_state)); in init_by_options()491 channel->domains = ares_malloc(options->ndomains * sizeof(char *)); in init_by_options()516 channel->sortlist = ares_malloc(options->nsort * sizeof(struct apattern)); in init_by_options()591 *outptr = ares_malloc(size+1); in get_REG_SZ()633 *outptr = ares_malloc(size+1); in get_REG_SZ_9X()891 fi = ares_malloc(size); in get_DNS_NetworkParams()[all …]
114 temp = ares_malloc(nelms * sizeof(*temp)); in ares_strsplit()135 out = ares_malloc(nelms * sizeof(*out)); in ares_strsplit()
81 squery = ares_malloc(sizeof(struct search_query)); in ares_search()219 *s = ares_malloc(nlen + 1 + dlen + 1); in ares__cat_domain()276 *s = ares_malloc(q - p + 1); in ares__single_domain()
140 caa_curr->property = ares_malloc (caa_curr->plength + 1/* Including null byte */); in ares_parse_caa_reply()157 caa_curr->value = ares_malloc (caa_curr->length + 1/* Including null byte */); in ares_parse_caa_reply()
56 struct sockaddr_in *sin = ares_malloc(sizeof(*sin)); in ares_append_ai_node()76 struct sockaddr_in6 *sin6 = ares_malloc(sizeof(*sin6)); in ares_append_ai_node()
33 s2 = ares_malloc(sz); in ares_strdup()
118 struct ares_addrinfo_cname *cname = ares_malloc(sizeof(struct ares_addrinfo_cname)); in ares__malloc_addrinfo_cname()165 struct ares_addrinfo *ai = ares_malloc(sizeof(struct ares_addrinfo)); in ares__malloc_addrinfo()176 ares_malloc(sizeof(struct ares_addrinfo_node)); in ares__malloc_addrinfo_node()665 hquery = ares_malloc(sizeof(struct host_query)); in ares_getaddrinfo()
54 *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()
102 buf = ares_malloc(len); in ares_create_query()
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()
145 uri_curr->uri = (char *)ares_malloc(rr_len-3); in ares_parse_uri_reply()
151 txt_curr->txt = ares_malloc (substr_len + 1/* Including null byte */); in ares__parse_txt_reply()
133 *s = ares_malloc(nlen.uns + 1); in ares__expand_name_validated()
126 qquery = ares_malloc(sizeof(struct qquery)); in ares_query()
249 vec = ares_malloc(n * sizeof(struct iovec)); in write_tcp_data()415 server->tcp_buffer = ares_malloc(server->tcp_length); in read_tcp_data()821 sendreq = ares_malloc(sizeof(struct send_request)); in ares__send_query()1461 sendreq->data_storage = ares_malloc(sendreq->len); in end_query()
165 ptr = ares_malloc(sizeof(struct ares_data)); in ares_malloc_data()