Searched refs:ares_malloc_zero (Results 1 – 25 of 29) sorted by relevance
12
39 ares__thread_mutex_t *mut = ares_malloc_zero(sizeof(*mut)); in ares__thread_mutex_create()79 ares__thread_cond_t *cond = ares_malloc_zero(sizeof(*cond)); in ares__thread_cond_create()164 thr = ares_malloc_zero(sizeof(*thr)); in ares__thread_create()223 ares__thread_mutex_t *mut = ares_malloc_zero(sizeof(*mut)); in ares__thread_mutex_create()281 ares__thread_cond_t *cond = ares_malloc_zero(sizeof(*cond)); in ares__thread_cond_create()380 thr = ares_malloc_zero(sizeof(*thr)); in ares__thread_create()
114 htable = ares_malloc_zero(sizeof(*htable)); in ares__htable_create()125 htable->buckets = ares_malloc_zero(sizeof(*htable->buckets) * htable->size); in ares__htable_create()150 out = ares_malloc_zero(sizeof(*out) * htable->num_keys); in ares__htable_all_buckets()208 buckets = ares_malloc_zero(sizeof(*buckets) * htable->size); in ares__htable_expand()218 ares_malloc_zero(sizeof(*prealloc_llist) * prealloc_llist_len); in ares__htable_expand()
67 list = ares_malloc_zero(sizeof(*list)); in ares__slist_create()78 list->head = ares_malloc_zero(sizeof(*list->head) * list->levels); in ares__slist_create()206 node = ares_malloc_zero(sizeof(*node)); in ares__slist_insert()219 node->next = ares_malloc_zero(sizeof(*node->next) * node->levels); in ares__slist_insert()224 node->prev = ares_malloc_zero(sizeof(*node->prev) * node->levels); in ares__slist_insert()
58 out = ares_malloc_zero(sizeof(*elms) * num_elm); in ares__strsplit_duplicate()109 out = ares_malloc_zero(cnt * sizeof(*out)); in ares__strsplit()
82 ares__iface_ips_t *ips = ares_malloc_zero(sizeof(*ips)); in ares__iface_ips_alloc()89 ips->ips = ares_malloc_zero(ips->alloc_size * sizeof(*ips->ips)); in ares__iface_ips_alloc()294 out = ares_malloc_zero((size_t)len + 1);340 addresses = ares_malloc_zero(outBufLen); in ares__iface_ips_enumerate()
79 kq = ares_malloc_zero(sizeof(*kq)); in ares_evsys_kqueue_init()98 ares_malloc_zero(sizeof(*kq->changelist) * kq->nchanges_alloc); in ares_evsys_kqueue_init()
110 struct ares_addrinfo_cname *tail = ares_malloc_zero(sizeof(*tail)); in ares__append_addrinfo_cname()150 struct ares_addrinfo_node *tail = ares_malloc_zero(sizeof(*tail)); in ares__append_addrinfo_node()605 ai = ares_malloc_zero(sizeof(*ai)); in ares_getaddrinfo_int()618 hquery = ares_malloc_zero(sizeof(*hquery)); in ares_getaddrinfo_int()
47 ares__llist_t *list = ares_malloc_zero(sizeof(*list)); in ares__llist_create()133 node = ares_malloc_zero(sizeof(*node)); in ares__llist_insert_at()
391 s = ares_malloc_zero(sizeof(*s)); in ares__sconfig_append()579 struct server_state *server = ares_malloc_zero(sizeof(*server)); in ares__server_create()792 sconfig = ares_malloc_zero(sizeof(*sconfig)); in ares_addr_node_to_server_config_llist()841 sconfig = ares_malloc_zero(sizeof(*sconfig)); in ares_addr_port_node_to_server_config_llist()889 sconfig = ares_malloc_zero(sizeof(*sconfig)); in ares_in_addr_to_server_config_llist()
120 ev = ares_malloc_zero(sizeof(*ev)); in ares_event_update()395 e = ares_malloc_zero(sizeof(*e)); in ares_event_thread_init()
287 ares_hosts_file_t *hf = ares_malloc_zero(sizeof(*hf)); in ares__hosts_file_create()564 entry = ares_malloc_zero(sizeof(*entry)); in ares__parse_hosts_ipaddr()868 *hostent = ares_malloc_zero(sizeof(**hostent)); in ares__hosts_entry_to_hostent()945 ares_malloc_zero((naliases + 1) * sizeof(*(*hostent)->h_aliases)); in ares__hosts_entry_to_hostent()
77 void *ares_malloc_zero(size_t size) in ares_malloc_zero() function
203 cache = ares_malloc_zero(sizeof(*cache)); in ares__qcache_create()350 entry = ares_malloc_zero(sizeof(*entry)); in ares__qcache_insert()
79 pollfd = ares_malloc_zero(sizeof(*pollfd) * num_fds); in ares_evsys_poll_wait()
61 ares_pipeevent_t *p = ares_malloc_zero(sizeof(*p)); in ares_pipeevent_init()
145 ptr = ares_malloc_zero(sizeof(*ptr)); in ares_malloc_data()
61 ares_malloc_zero(ares__slist_len(channel->servers) * sizeof(*out)); in ares_save_opt_servers()384 ares_malloc_zero((size_t)options->ndomains * sizeof(char *)); in ares__init_by_options()
243 ew = ares_malloc_zero(sizeof(*ew)); in ares_evsys_win32_init()428 ed = ares_malloc_zero(sizeof(*ed)); in ares_evsys_win32_event_add()
134 out = ares_malloc_zero(sizeof(*out) * cnt); in ares__htable_asvp_keys()
69 ep = ares_malloc_zero(sizeof(*ep)); in ares_evsys_epoll_init()
212 state = ares_malloc_zero(sizeof(*state)); in ares__init_rand_state()
249 ai = ares_malloc_zero(sizeof(*ai)); in ares__hostent_localhost()
93 squery = ares_malloc_zero(sizeof(*squery)); in ares_search_int()
306 channel = ares_malloc_zero(sizeof(*channel)); in ares_init_options()
65 off = ares_malloc_zero(sizeof(*off)); in ares__nameoffset_create()