Home
last modified time | relevance | path

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

/external/libevent/
Dmm-internal.h45 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) macro
51 #define mm_calloc(n, sz) calloc((n), (sz))
Ddevpoll.c124 if (!(devpollop = mm_calloc(1, sizeof(struct devpollop)))) in devpoll_init()
143 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
151 devpollop->changes = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
Dkqueue.c117 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init()
132 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
135 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
Devent_iocp.c183 if (!(port = mm_calloc(1, sizeof(struct event_iocp_port)))) in event_iocp_port_launch()
189 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch()
Devport.c144 if (!(evpd = mm_calloc(1, sizeof(struct evport_data)))) in evport_init()
155 evpd->ed_fds = mm_calloc(DEFAULT_NFDS, sizeof(struct fd_info)); in evport_init()
Devrpc.c73 struct evrpc_base* base = mm_calloc(1, sizeof(struct evrpc_base)); in evrpc_init()
138 hook = mm_calloc(1, sizeof(struct evrpc_hook)); in evrpc_add_hook()
294 rpc_state = mm_calloc(1, sizeof(struct evrpc_req_generic)); in evrpc_request_cb()
512 struct evrpc_pool *pool = mm_calloc(1, sizeof(struct evrpc_pool)); in evrpc_pool_new()
1114 struct evrpc* rpc = (struct evrpc *)mm_calloc(1, sizeof(struct evrpc)); in evrpc_register_object()
Dlistener.c178 lev = mm_calloc(1, sizeof(struct evconnlistener_event)); in evconnlistener_new()
499 res = mm_calloc(1,sizeof(struct accepting_socket)-1+buflen); in new_accepting_socket()
826 lev = mm_calloc(1, sizeof(struct evconnlistener_iocp)); in evconnlistener_new_async()
849 lev->accepting = mm_calloc(lev->n_accepting, in evconnlistener_new_async()
Depoll.c123 if (!(epollop = mm_calloc(1, sizeof(struct epollop)))) { in epoll_init()
131 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init()
Dbufferevent_ratelim.c161 r = mm_calloc(1, sizeof(struct ev_token_bucket_cfg)); in ev_token_bucket_cfg_new()
595 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_set_rate_limit()
648 g = mm_calloc(1, sizeof(struct bufferevent_rate_limit_group)); in bufferevent_rate_limit_group_new()
742 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_add_to_rate_limit_group()
Dhttp.c1689 struct evkeyval *header = mm_calloc(1, sizeof(struct evkeyval)); in evhttp_add_header_internal()
2079 if ((evcon = mm_calloc(1, sizeof(struct evhttp_connection))) == NULL) { in evhttp_connection_base_new()
3197 if ((http = mm_calloc(1, sizeof(struct evhttp))) == NULL) { in evhttp_new_object()
3338 evalias = mm_calloc(1, sizeof(*evalias)); in evhttp_add_server_alias()
3411 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb()
3467 if ((req = mm_calloc(1, sizeof(struct evhttp_request))) == NULL) { in evhttp_request_new()
3476 req->input_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
3483 req->output_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
3927 struct evhttp_uri *uri = mm_calloc(sizeof(struct evhttp_uri), 1); in evhttp_uri_new()
4208 struct evhttp_uri *uri = mm_calloc(1, sizeof(struct evhttp_uri)); in evhttp_uri_parse_with_flags()
Dselect.c105 if (!(sop = mm_calloc(1, sizeof(struct selectop)))) in select_init()
Dpoll.c88 if (!(pollop = mm_calloc(1, sizeof(struct pollop)))) in poll_init()
Devent.c562 if ((base = mm_calloc(1, sizeof(struct event_base))) == NULL) { in event_base_new_with_config()
904 tmp = mm_calloc((i + 1), sizeof(char *)); in event_get_supported_methods()
925 struct event_config *cfg = mm_calloc(1, sizeof(*cfg)); in event_config_new()
1025 mm_calloc(npriorities, sizeof(struct event_list)); in event_base_priority_init()
1229 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout()
1702 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL) in event_base_once()
Dbuffer_iocp.c155 evo = mm_calloc(1, sizeof(struct evbuffer_overlapped)); in evbuffer_overlapped_new()
Devmap.c129 _ent = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \
170 mm_calloc(1,sizeof(struct type)+fdinfo_len); \
Dbufferevent_pair.c95 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new()
Devdns.c821 struct deferred_reply_callback *d = mm_calloc(1, sizeof(*d)); in reply_schedule_callback()
1238 server_req->base.questions = mm_calloc(sizeof(struct evdns_server_question *), questions); in request_parse()
2305 handle = mm_calloc(1, sizeof(*handle)); in nameserver_send_probe()
2833 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv4()
2872 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv6()
2912 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse()
2952 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse_ipv6()
3341 new_heads = mm_calloc(n_heads, sizeof(struct request*)); in evdns_base_set_max_requests_inflight()
4071 he = mm_calloc(1, sizeof(struct hosts_entry)+namelen); in evdns_base_parse_hosts_line()
4596 data = mm_calloc(1,sizeof(struct evdns_getaddrinfo_request)); in evdns_getaddrinfo()
Dwin32select.c181 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
Dbufferevent_filter.c179 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered)); in bufferevent_filter_new()
Dbufferevent_sock.c328 if ((bufev_p = mm_calloc(1, sizeof(struct bufferevent_private)))== NULL) in bufferevent_socket_new()
Dbufferevent_async.c548 if (!(bev_a = mm_calloc(1, sizeof(struct bufferevent_async)))) in bufferevent_async_new()
Dbufferevent_openssl.c1303 if (!(bev_ssl = mm_calloc(1, sizeof(struct bufferevent_openssl)))) in bufferevent_openssl_new_impl()
Dbuffer.c353 buffer = mm_calloc(1, sizeof(struct evbuffer)); in evbuffer_new()
2964 if (! (e = mm_calloc(1, sizeof(struct evbuffer_cb_entry)))) in evbuffer_add_cb()
Devutil.c674 res = mm_calloc(1,sizeof(struct evutil_addrinfo)+socklen); in evutil_new_addrinfo()
DChangeLog302 o Add some missing checks for mm_calloc failures (89d5e09)