/external/libevent/ |
D | mm-internal.h | 71 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) macro 77 #define mm_calloc(n, sz) calloc((n), (sz))
|
D | devpoll.c | 127 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()
|
D | kqueue.c | 121 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()
|
D | event_iocp.c | 184 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_()
|
D | evrpc.c | 74 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()
|
D | listener.c | 180 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()
|
D | epoll.c | 161 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()
|
D | bufferevent_ratelim.c | 162 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()
|
D | http.c | 1945 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()
|
D | select.c | 114 if (!(sop = mm_calloc(1, sizeof(struct selectop)))) in select_init()
|
D | poll.c | 92 if (!(pollop = mm_calloc(1, sizeof(struct pollop)))) in poll_init()
|
D | buffer_iocp.c | 156 evo = mm_calloc(1, sizeof(struct evbuffer_overlapped)); in evbuffer_overlapped_new_()
|
D | evport.c | 145 if (!(evpd = mm_calloc(1, sizeof(struct evport_data)))) in evport_init()
|
D | evdns.c | 832 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()
|
D | bufferevent_pair.c | 97 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new()
|
D | evmap.c | 131 ent_ = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \ 172 mm_calloc(1,sizeof(struct type)+fdinfo_len); \
|
D | win32select.c | 185 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
|
D | event.c | 575 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()
|
D | bufferevent_filter.c | 188 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered)); in bufferevent_filter_new()
|
D | bufferevent_async.c | 543 if (!(bev_a = mm_calloc(1, sizeof(struct bufferevent_async)))) in bufferevent_async_new_()
|
D | bufferevent_sock.c | 354 if ((bufev_p = mm_calloc(1, sizeof(struct bufferevent_private)))== NULL) in bufferevent_socket_new()
|
D | buffer.c | 365 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()
|
D | bufferevent_openssl.c | 1349 if (!(bev_ssl = mm_calloc(1, sizeof(struct bufferevent_openssl)))) in bufferevent_openssl_new_impl()
|
/external/libevent/test/ |
D | regress_zlib.c | 299 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()
|
D | regress_util.c | 1173 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()
|