Home
last modified time | relevance | path

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

12

/freebsd-11-stable/contrib/ntp/sntp/libevent/
HDmm-internal.h71 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) macro
77 #define mm_calloc(n, sz) calloc((n), (sz))
HDdevpoll.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()
HDkqueue.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()
HDevent_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_()
HDevrpc.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()
HDlistener.c180 lev = mm_calloc(1, sizeof(struct evconnlistener_event)); in evconnlistener_new()
501 res = mm_calloc(1,sizeof(struct accepting_socket)-1+buflen); in new_accepting_socket()
829 lev = mm_calloc(1, sizeof(struct evconnlistener_iocp)); in evconnlistener_new_async()
852 lev->accepting = mm_calloc(lev->n_accepting, in evconnlistener_new_async()
HDepoll.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()
HDbufferevent_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()
HDhttp.c1851 struct evkeyval *header = mm_calloc(1, sizeof(struct evkeyval)); in evhttp_add_header_internal()
2257 if ((evcon = mm_calloc(1, sizeof(struct evhttp_connection))) == NULL) { in evhttp_connection_base_bufferevent_new()
3463 if ((http = mm_calloc(1, sizeof(struct evhttp))) == NULL) { in evhttp_new_object()
3605 evalias = mm_calloc(1, sizeof(*evalias)); in evhttp_add_server_alias()
3701 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb()
3765 if ((req = mm_calloc(1, sizeof(struct evhttp_request))) == NULL) { in evhttp_request_new()
3774 req->input_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
3781 req->output_headers = mm_calloc(1, sizeof(struct evkeyvalq)); in evhttp_request_new()
4253 struct evhttp_uri *uri = mm_calloc(sizeof(struct evhttp_uri), 1); in evhttp_uri_new()
4536 struct evhttp_uri *uri = mm_calloc(1, sizeof(struct evhttp_uri)); in evhttp_uri_parse_with_flags()
HDselect.c114 if (!(sop = mm_calloc(1, sizeof(struct selectop)))) in select_init()
HDpoll.c92 if (!(pollop = mm_calloc(1, sizeof(struct pollop)))) in poll_init()
HDbuffer_iocp.c156 evo = mm_calloc(1, sizeof(struct evbuffer_overlapped)); in evbuffer_overlapped_new_()
HDevport.c145 if (!(evpd = mm_calloc(1, sizeof(struct evport_data)))) in evport_init()
HDevdns.c832 struct deferred_reply_callback *d = mm_calloc(1, sizeof(*d)); in reply_schedule_callback()
1254 server_req->base.questions = mm_calloc(sizeof(struct evdns_server_question *), questions); in request_parse()
2329 handle = mm_calloc(1, sizeof(*handle)); in nameserver_send_probe()
2888 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv4()
2927 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_ipv6()
2967 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse()
3007 handle = mm_calloc(1, sizeof(*handle)); in evdns_base_resolve_reverse_ipv6()
3396 new_heads = mm_calloc(n_heads, sizeof(struct request*)); in evdns_base_set_max_requests_inflight()
4152 he = mm_calloc(1, sizeof(struct hosts_entry)+namelen); in evdns_base_parse_hosts_line()
4677 data = mm_calloc(1,sizeof(struct evdns_getaddrinfo_request)); in evdns_getaddrinfo()
HDbufferevent_pair.c97 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new()
HDevmap.c131 ent_ = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \
172 mm_calloc(1,sizeof(struct type)+fdinfo_len); \
HDwin32select.c185 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
HDevent.c559 if ((base = mm_calloc(1, sizeof(struct event_base))) == NULL) { in event_base_new_with_config()
1027 tmp = mm_calloc((i + 1), sizeof(char *)); in event_get_supported_methods()
1048 struct event_config *cfg = mm_calloc(1, sizeof(*cfg)); in event_config_new()
1171 mm_calloc(npriorities, sizeof(struct evcallback_list)); in event_base_priority_init()
1444 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout()
1972 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL) in event_base_once()
HDbufferevent_filter.c183 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered)); in bufferevent_filter_new()
HDbufferevent_sock.c328 if ((bufev_p = mm_calloc(1, sizeof(struct bufferevent_private)))== NULL) in bufferevent_socket_new()
HDbufferevent_async.c543 if (!(bev_a = mm_calloc(1, sizeof(struct bufferevent_async)))) in bufferevent_async_new_()
HDbuffer.c365 buffer = mm_calloc(1, sizeof(struct evbuffer)); in evbuffer_new()
2947 mm_calloc(sizeof(struct evbuffer_file_segment), 1); in evbuffer_file_segment_new()
3309 if (! (e = mm_calloc(1, sizeof(struct evbuffer_cb_entry)))) in evbuffer_add_cb()
HDbufferevent_openssl.c1328 if (!(bev_ssl = mm_calloc(1, sizeof(struct bufferevent_openssl)))) in bufferevent_openssl_new_impl()
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
HDregress_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()
HDregress_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