Home
last modified time | relevance | path

Searched refs:mm_calloc (Results 1 – 25 of 28) sorted by relevance

12

/external/libevent/
Dmm-internal.h71 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) macro
77 #define mm_calloc(n, sz) calloc((n), (sz))
Ddevpoll.c127 if (!(devpollop = mm_calloc(1, sizeof(struct devpollop)))) in devpoll_init()
146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
154 devpollop->changes = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
Dkqueue.c121 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init()
136 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
139 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
Devent_iocp.c184 if (!(port = mm_calloc(1, sizeof(struct event_iocp_port)))) in event_iocp_port_launch_()
190 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch_()
Devrpc.c74 struct evrpc_base* base = mm_calloc(1, sizeof(struct evrpc_base)); in evrpc_init()
139 hook = mm_calloc(1, sizeof(struct evrpc_hook)); in evrpc_add_hook()
295 rpc_state = mm_calloc(1, sizeof(struct evrpc_req_generic)); in evrpc_request_cb()
509 struct evrpc_pool *pool = mm_calloc(1, sizeof(struct evrpc_pool)); in evrpc_pool_new()
1111 struct evrpc* rpc = (struct evrpc *)mm_calloc(1, sizeof(struct evrpc)); in evrpc_register_object()
Dlistener.c180 lev = mm_calloc(1, sizeof(struct evconnlistener_event)); in evconnlistener_new()
502 res = mm_calloc(1,sizeof(struct accepting_socket)-1+buflen); in new_accepting_socket()
830 lev = mm_calloc(1, sizeof(struct evconnlistener_iocp)); in evconnlistener_new_async()
853 lev->accepting = mm_calloc(lev->n_accepting, in evconnlistener_new_async()
Depoll.c161 if (!(epollop = mm_calloc(1, sizeof(struct epollop)))) { in epoll_init()
169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init()
Dbufferevent_ratelim.c162 r = mm_calloc(1, sizeof(struct ev_token_bucket_cfg)); in ev_token_bucket_cfg_new()
596 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_set_rate_limit()
649 g = mm_calloc(1, sizeof(struct bufferevent_rate_limit_group)); in bufferevent_rate_limit_group_new()
746 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_add_to_rate_limit_group()
Dhttp.c1945 struct evkeyval *header = mm_calloc(1, sizeof(struct evkeyval)); in evhttp_add_header_internal()
2345 if ((evcon = mm_calloc(1, sizeof(struct evhttp_connection))) == NULL) { in evhttp_connection_base_bufferevent_new()
3612 if ((http = mm_calloc(1, sizeof(struct evhttp))) == NULL) { in evhttp_new_object()
3754 evalias = mm_calloc(1, sizeof(*evalias)); in evhttp_add_server_alias()
3864 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb()
3928 if ((req = mm_calloc(1, sizeof(struct evhttp_request))) == NULL) { in evhttp_request_new()
3937 req->input_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
3944 req->output_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
4420 struct evhttp_uri *uri = mm_calloc(sizeof(struct evhttp_uri), 1); in evhttp_uri_new()
4703 struct evhttp_uri *uri = mm_calloc(1, sizeof(struct evhttp_uri)); in evhttp_uri_parse_with_flags()
Dselect.c114 if (!(sop = mm_calloc(1, sizeof(struct selectop)))) in select_init()
Dpoll.c92 if (!(pollop = mm_calloc(1, sizeof(struct pollop)))) in poll_init()
Dbuffer_iocp.c156 evo = mm_calloc(1, sizeof(struct evbuffer_overlapped)); in evbuffer_overlapped_new_()
Devport.c145 if (!(evpd = mm_calloc(1, sizeof(struct evport_data)))) in evport_init()
Devdns.c832 struct deferred_reply_callback *d = mm_calloc(1, sizeof(*d)); in reply_schedule_callback()
1252 server_req->base.questions = mm_calloc(sizeof(struct evdns_server_question *), questions); in request_parse()
2327 handle = mm_calloc(1, sizeof(*handle)); in nameserver_send_probe()
2886 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv4()
2925 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv6()
2965 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse()
3005 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse_ipv6()
3397 new_heads = mm_calloc(n_heads, sizeof(struct request*)); in evdns_base_set_max_requests_inflight()
4155 he = mm_calloc(1, sizeof(struct hosts_entry)+namelen); in evdns_base_parse_hosts_line()
4688 data = mm_calloc(1,sizeof(struct evdns_getaddrinfo_request)); in evdns_getaddrinfo()
Dbufferevent_pair.c97 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new()
Devmap.c131 ent_ = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \
172 mm_calloc(1,sizeof(struct type)+fdinfo_len); \
Dwin32select.c185 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
Devent.c575 if ((base = mm_calloc(1, sizeof(struct event_base))) == NULL) { in event_base_new_with_config()
1074 tmp = mm_calloc((i + 1), sizeof(char *)); in event_get_supported_methods()
1095 struct event_config *cfg = mm_calloc(1, sizeof(*cfg)); in event_config_new()
1218 mm_calloc(npriorities, sizeof(struct evcallback_list)); in event_base_priority_init()
1491 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout()
2019 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL) in event_base_once()
Dbufferevent_filter.c188 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered)); in bufferevent_filter_new()
Dbufferevent_async.c543 if (!(bev_a = mm_calloc(1, sizeof(struct bufferevent_async)))) in bufferevent_async_new_()
Dbufferevent_sock.c354 if ((bufev_p = mm_calloc(1, sizeof(struct bufferevent_private)))== NULL) in bufferevent_socket_new()
Dbuffer.c365 buffer = mm_calloc(1, sizeof(struct evbuffer)); in evbuffer_new()
2955 mm_calloc(sizeof(struct evbuffer_file_segment), 1); in evbuffer_file_segment_new()
3317 if (! (e = mm_calloc(1, sizeof(struct evbuffer_cb_entry)))) in evbuffer_add_cb()
Dbufferevent_openssl.c1349 if (!(bev_ssl = mm_calloc(1, sizeof(struct bufferevent_openssl)))) in bufferevent_openssl_new_impl()
/external/libevent/test/
Dregress_zlib.c299 z_output = mm_calloc(sizeof(*z_output), 1); in test_bufferevent_zlib()
302 z_input = mm_calloc(sizeof(*z_input), 1); in test_bufferevent_zlib()
Dregress_util.c1173 p = mm_calloc(0, 0); in test_event_calloc()
1177 p = mm_calloc(0, 1); in test_event_calloc()
1181 p = mm_calloc(1, 0); in test_event_calloc()
1188 p = mm_calloc(8, 8); in test_event_calloc()
1197 p = mm_calloc(EV_SIZE_MAX/2, EV_SIZE_MAX/2 + 8); in test_event_calloc()

12