Home
last modified time | relevance | path

Searched refs:ares_malloc_zero (Results 1 – 25 of 29) sorted by relevance

12

/third_party/node/deps/cares/src/lib/
Dares__threads.c39 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()
Dares__htable.c114 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()
Dares__slist.c67 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()
Dares_strsplit.c58 out = ares_malloc_zero(sizeof(*elms) * num_elm); in ares__strsplit_duplicate()
109 out = ares_malloc_zero(cnt * sizeof(*out)); in ares__strsplit()
Dares__iface_ips.c82 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()
Dares_event_kqueue.c79 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()
Dares_getaddrinfo.c110 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()
Dares__llist.c47 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()
Dares_update_servers.c391 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()
Dares_event_thread.c120 ev = ares_malloc_zero(sizeof(*ev)); in ares_event_update()
395 e = ares_malloc_zero(sizeof(*e)); in ares_event_thread_init()
Dares__hosts_file.c287 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()
Dares_library_init.c77 void *ares_malloc_zero(size_t size) in ares_malloc_zero() function
Dares_qcache.c203 cache = ares_malloc_zero(sizeof(*cache)); in ares__qcache_create()
350 entry = ares_malloc_zero(sizeof(*entry)); in ares__qcache_insert()
Dares_event_poll.c79 pollfd = ares_malloc_zero(sizeof(*pollfd) * num_fds); in ares_evsys_poll_wait()
Dares_event_wake_pipe.c61 ares_pipeevent_t *p = ares_malloc_zero(sizeof(*p)); in ares_pipeevent_init()
Dares_data.c145 ptr = ares_malloc_zero(sizeof(*ptr)); in ares_malloc_data()
Dares_options.c61 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()
Dares_event_win32.c243 ew = ares_malloc_zero(sizeof(*ew)); in ares_evsys_win32_init()
428 ed = ares_malloc_zero(sizeof(*ed)); in ares_evsys_win32_event_add()
Dares__htable_asvp.c134 out = ares_malloc_zero(sizeof(*out) * cnt); in ares__htable_asvp_keys()
Dares_event_epoll.c69 ep = ares_malloc_zero(sizeof(*ep)); in ares_evsys_epoll_init()
Dares_rand.c212 state = ares_malloc_zero(sizeof(*state)); in ares__init_rand_state()
Dares_gethostbyname.c249 ai = ares_malloc_zero(sizeof(*ai)); in ares__hostent_localhost()
Dares_search.c93 squery = ares_malloc_zero(sizeof(*squery)); in ares_search_int()
Dares_init.c306 channel = ares_malloc_zero(sizeof(*channel)); in ares_init_options()
Dares_dns_name.c65 off = ares_malloc_zero(sizeof(*off)); in ares__nameoffset_create()

12