| /libevent-2.1.12/ |
| H A D | mm-internal.h | 76 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) macro 82 #define mm_calloc(n, sz) calloc((n), (sz))
|
| H A 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()
|
| H A D | kqueue.c | 126 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init() 141 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init() 144 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
|
| H A 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_()
|
| H A 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() 510 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()
|
| H A D | listener.c | 181 lev = mm_calloc(1, sizeof(struct evconnlistener_event)); in evconnlistener_new() 511 res = mm_calloc(1,sizeof(struct accepting_socket)-1+buflen); in new_accepting_socket() 839 lev = mm_calloc(1, sizeof(struct evconnlistener_iocp)); in evconnlistener_new_async() 862 lev->accepting = mm_calloc(lev->n_accepting, in evconnlistener_new_async()
|
| H A D | bufferevent_ratelim.c | 162 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() 744 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_add_to_rate_limit_group()
|
| H A 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()
|
| H A D | http.c | 1992 struct evkeyval *header = mm_calloc(1, sizeof(struct evkeyval)); in evhttp_add_header_internal() 2386 if ((evcon = mm_calloc(1, sizeof(struct evhttp_connection))) == NULL) { in evhttp_connection_base_bufferevent_new() 3672 if ((http = mm_calloc(1, sizeof(struct evhttp))) == NULL) { in evhttp_new_object() 3814 evalias = mm_calloc(1, sizeof(*evalias)); in evhttp_add_server_alias() 3924 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb() 3988 if ((req = mm_calloc(1, sizeof(struct evhttp_request))) == NULL) { in evhttp_request_new() 3997 req->input_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new() 4004 req->output_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new() 4494 struct evhttp_uri *uri = mm_calloc(sizeof(struct evhttp_uri), 1); in evhttp_uri_new() 4777 struct evhttp_uri *uri = mm_calloc(1, sizeof(struct evhttp_uri)); in evhttp_uri_parse_with_flags() [all …]
|
| H A D | select.c | 114 if (!(sop = mm_calloc(1, sizeof(struct selectop)))) in select_init()
|
| H A D | evport.c | 145 if (!(evpd = mm_calloc(1, sizeof(struct evport_data)))) in evport_init()
|
| H A D | buffer_iocp.c | 157 evo = mm_calloc(1, sizeof(struct evbuffer_overlapped)); in evbuffer_overlapped_new_()
|
| H A D | poll.c | 103 if (!(pollop = mm_calloc(1, sizeof(struct pollop)))) in poll_init()
|
| H A D | evdns.c | 836 struct deferred_reply_callback *d = mm_calloc(1, sizeof(*d)); in reply_schedule_callback() 1269 server_req->base.questions = mm_calloc(sizeof(struct evdns_server_question *), questions); in request_parse() 2344 handle = mm_calloc(1, sizeof(*handle)); in nameserver_send_probe() 2920 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv4() 2959 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv6() 2999 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse() 3039 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse_ipv6() 3437 new_heads = mm_calloc(n_heads, sizeof(struct request*)); in evdns_base_set_max_requests_inflight() 4228 he = mm_calloc(1, sizeof(struct hosts_entry)+namelen); in evdns_base_parse_hosts_line() 4762 data = mm_calloc(1,sizeof(struct evdns_getaddrinfo_request)); in evdns_getaddrinfo()
|
| H A D | bufferevent_pair.c | 97 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new()
|
| H A D | evmap.c | 132 ent_ = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \ 173 mm_calloc(1,sizeof(struct type)+fdinfo_len); \
|
| H A D | win32select.c | 185 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
|
| H A D | event.c | 615 if ((base = mm_calloc(1, sizeof(struct event_base))) == NULL) { in event_base_new_with_config() 1117 tmp = mm_calloc((i + 1), sizeof(char *)); in event_get_supported_methods() 1138 struct event_config *cfg = mm_calloc(1, sizeof(*cfg)); in event_config_new() 1261 mm_calloc(npriorities, sizeof(struct evcallback_list)); in event_base_priority_init() 1534 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout() 2067 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL) in event_base_once()
|
| H A D | bufferevent_filter.c | 188 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered)); in bufferevent_filter_new()
|
| H A D | bufferevent_sock.c | 355 if ((bufev_p = mm_calloc(1, sizeof(struct bufferevent_private)))== NULL) in bufferevent_socket_new()
|
| H A D | bufferevent_async.c | 560 if (!(bev_a = mm_calloc(1, sizeof(struct bufferevent_async)))) in bufferevent_async_new_()
|
| H A D | buffer.c | 366 buffer = mm_calloc(1, sizeof(struct evbuffer)); in evbuffer_new() 2968 mm_calloc(sizeof(struct evbuffer_file_segment), 1); in evbuffer_file_segment_new() 3337 if (! (e = mm_calloc(1, sizeof(struct evbuffer_cb_entry)))) in evbuffer_add_cb()
|
| H A D | bufferevent_openssl.c | 1358 if (!(bev_ssl = mm_calloc(1, sizeof(struct bufferevent_openssl)))) in bufferevent_openssl_new_impl()
|
| /libevent-2.1.12/test/ |
| H A 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()
|
| H A D | regress_util.c | 1281 p = mm_calloc(0, 0); in test_event_calloc() 1285 p = mm_calloc(0, 1); in test_event_calloc() 1289 p = mm_calloc(1, 0); in test_event_calloc() 1296 p = mm_calloc(8, 8); in test_event_calloc() 1305 p = mm_calloc(EV_SIZE_MAX/2, EV_SIZE_MAX/2 + 8); in test_event_calloc()
|