| /libevent-2.1.12/ |
| H A D | win32select.c | 106 size_t size; in grow_fd_sets() local 112 size = FD_SET_ALLOC_SIZE(new_num_fds); in grow_fd_sets() 113 if (!(op->readset_in = mm_realloc(op->readset_in, size))) in grow_fd_sets() 115 if (!(op->writeset_in = mm_realloc(op->writeset_in, size))) in grow_fd_sets() 184 size_t size; in win32_init() local 188 size = FD_SET_ALLOC_SIZE(NEVENT); in win32_init() 189 if (!(winop->readset_in = mm_malloc(size))) in win32_init() 191 if (!(winop->writeset_in = mm_malloc(size))) in win32_init() 193 if (!(winop->readset_out = mm_malloc(size))) in win32_init() 195 if (!(winop->writeset_out = mm_malloc(size))) in win32_init() [all …]
|
| H A D | epoll_sub.c | 38 epoll_create(int size) in epoll_create() argument 41 if (size <= 0) { in epoll_create() 47 return (syscall(__NR_epoll_create, size)); in epoll_create()
|
| H A D | mm-internal.h | 58 void *event_mm_calloc_(size_t count, size_t size); 76 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) argument
|
| H A D | buffer.c | 174 to_alloc = size; in evbuffer_chain_new() 688 EVUTIL_ASSERT(size<0 || (size_t)vec[0].iov_len >= (size_t)size); in evbuffer_reserve_space() 1362 if (size < 0) in evbuffer_pullup() 1367 if (size == 0 || (size_t)size > buf->total_len) in evbuffer_pullup() 1396 tmp->off = size; in evbuffer_pullup() 1397 size -= old_off; in evbuffer_pullup() 1404 tmp->off = size; in evbuffer_pullup() 1405 size -= old_off; in evbuffer_pullup() 1413 tmp->off = size; in evbuffer_pullup() 1426 size -= chain->off; in evbuffer_pullup() [all …]
|
| H A D | bufferevent_ratelim.c | 855 bufferevent_set_max_single_read(struct bufferevent *bev, size_t size) in bufferevent_set_max_single_read() argument 860 if (size == 0 || size > EV_SSIZE_MAX) in bufferevent_set_max_single_read() 863 bevp->max_single_read = size; in bufferevent_set_max_single_read() 869 bufferevent_set_max_single_write(struct bufferevent *bev, size_t size) in bufferevent_set_max_single_write() argument 874 if (size == 0 || size > EV_SSIZE_MAX) in bufferevent_set_max_single_write() 877 bevp->max_single_write = size; in bufferevent_set_max_single_write()
|
| H A D | event-config.h.cmake | 452 /* The size of `pthread_t', as computed by sizeof. */ 455 /* The size of a `int', as computed by sizeof. */ 458 /* The size of a `long', as computed by sizeof. */ 461 /* The size of a `long long', as computed by sizeof. */ 464 /* The size of `off_t', as computed by sizeof. */ 470 /* The size of a `short', as computed by sizeof. */ 473 /* The size of `size_t', as computed by sizeof. */ 479 /* The size of `socklen_t', as computed by sizeof. */ 482 /* The size of 'void *', as computer by sizeof */
|
| H A D | evutil.c | 232 ev_socklen_t size; in evutil_ersatz_socketpair_() local 270 size = sizeof(connect_addr); in evutil_ersatz_socketpair_() 273 if (size != sizeof (connect_addr)) in evutil_ersatz_socketpair_() 279 size = sizeof(listen_addr); in evutil_ersatz_socketpair_() 283 if (size != sizeof(listen_addr)) in evutil_ersatz_socketpair_() 289 if (size != sizeof (connect_addr) in evutil_ersatz_socketpair_() 703 ULONG size, res; in evutil_check_ifaddrs() 718 size = 15*1024; in evutil_check_ifaddrs() 719 addresses = mm_malloc(size); in evutil_check_ifaddrs() 722 res = fn(AF_UNSPEC, FLAGS, NULL, addresses, &size); in evutil_check_ifaddrs() [all …]
|
| H A D | bufferevent.c | 141 size_t size; in bufferevent_inbuf_wm_cb() local 143 size = evbuffer_get_length(buf); in bufferevent_inbuf_wm_cb() 145 if (size >= bufev->wm_read.high) in bufferevent_inbuf_wm_cb() 452 bufferevent_write(struct bufferevent *bufev, const void *data, size_t size) in bufferevent_write() argument 454 if (evbuffer_add(bufev->output, data, size) == -1) in bufferevent_write() 470 bufferevent_read(struct bufferevent *bufev, void *data, size_t size) in bufferevent_read() argument 472 return (evbuffer_remove(bufev->input, data, size)); in bufferevent_read()
|
| H A D | ht-internal.h | 317 name##_HT_GROW(struct name *head, unsigned size) \ 324 if (head->hth_load_limit > size) \ 330 } while (new_load_limit <= size && \
|
| H A D | whatsnew-2.0.txt | 57 would often stop working with another version that changed the size or 99 for them. But since the size and contents of struct event can 410 Previously, evbuffer callbacks were invoked with the old size of the 411 buffer and the new size of the buffer. This interface could not capture
|
| H A D | ChangeLog-1.4 | 33 … Instead, start out accepting 32 events at a time, and double the queue's size when it seems that … 54 o Remove the limit on size of HTTP headers by removing static buffers. 190 o Fix buffer size and string generation in evdns_resolve_reverse_ipv6().
|
| H A D | configure.ac | 83 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 630 epoll_create(int size) 632 return (syscall(__NR_epoll_create, size));
|
| H A D | event.c | 3496 event_mm_calloc_(size_t count, size_t size) in event_mm_calloc_() argument 3498 if (count == 0 || size == 0) in event_mm_calloc_() 3502 size_t sz = count * size; in event_mm_calloc_() 3504 if (count > EV_SIZE_MAX / size) in event_mm_calloc_() 3510 void *p = calloc(count, size); in event_mm_calloc_()
|
| H A D | evdns.c | 3768 ULONG size = sizeof(FIXED_INFO); in load_nameservers_with_getnetworkparams() local 3787 buf = mm_malloc(size); in load_nameservers_with_getnetworkparams() 3790 r = fn(fixed, &size); in load_nameservers_with_getnetworkparams() 3797 buf = mm_malloc(size); in load_nameservers_with_getnetworkparams() 3800 r = fn(fixed, &size); in load_nameservers_with_getnetworkparams()
|
| H A D | http.c | 457 char size[22]; in evhttp_make_header_request() local 458 evutil_snprintf(size, sizeof(size), EV_SIZE_FMT, in evhttp_make_header_request() 460 evhttp_add_header(req->output_headers, "Content-Length", size); in evhttp_make_header_request()
|
| H A D | whatsnew-2.1.txt | 695 Libevent now sets the size of ev_off_t to the size of off_t that it 696 received at compile time, not to some (possibly different) size based
|
| H A D | CMakeLists.txt | 309 "--param ssp-buffer-size=1") 599 # XXX we should functionalize these size and type sets. --elley
|
| H A D | ChangeLog-2.0 | 513 o Rename "size" variables in win32select that were really fd counts. (b6a158c) 665 o Fix wrong size calculation of iovec buffers when exact=1 (65abdc2 niks) 1043 … Instead, start out accepting 32 events at a time, and double the queue's size when it seems that …
|
| H A D | ChangeLog | 543 …o test: increase buffer size for http/data_length_constraints to trigger EPIPE (0792e1e Azat Khuzh… 819 o regress_buffer: fix 'memcmp' compare size (79800df Maks Naumov) 1321 o Improve the monotonic-time unit test: make it check the step size (7428c78)
|
| /libevent-2.1.12/include/event2/ |
| H A D | bufferevent.h | 387 const void *data, size_t size); 414 size_t bufferevent_read(struct bufferevent *bufev, void *data, size_t size); 895 int bufferevent_set_max_single_read(struct bufferevent *bev, size_t size); 905 int bufferevent_set_max_single_write(struct bufferevent *bev, size_t size);
|
| H A D | buffer.h | 299 evbuffer_reserve_space(struct evbuffer *buf, ev_ssize_t size, 994 unsigned char *evbuffer_pullup(struct evbuffer *buf, ev_ssize_t size); 1006 int evbuffer_prepend(struct evbuffer *buf, const void *data, size_t size);
|
| H A D | http.h | 929 char *evhttp_uriencode(const char *str, ev_ssize_t size, int space_to_plus);
|
| /libevent-2.1.12/test/ |
| H A D | regress_http.c | 4047 const size_t size = (1<<20) * 3; in http_data_length_constraints_test_impl() local 4056 tt_assert(continue_size < size); in http_data_length_constraints_test_impl() 4058 long_str = malloc(size); in http_data_length_constraints_test_impl() 4059 memset(long_str, 'a', size); in http_data_length_constraints_test_impl() 4060 long_str[size - 1] = '\0'; in http_data_length_constraints_test_impl() 4094 evhttp_set_max_body_size(http, size - 2); in http_data_length_constraints_test_impl() 4164 size_t size = (1<<20) * 3; in http_lingering_close_test_impl() local 4172 evhttp_set_max_body_size(http, size / 2); in http_lingering_close_test_impl() 4183 long_str = malloc(size); in http_lingering_close_test_impl() 4184 memset(long_str, 'a', size); in http_lingering_close_test_impl() [all …]
|
| H A D | regress_util.c | 451 size_t size = 8000; in test_evutil_snprintf() local 471 EV_SIZE_ARG(size), EV_SSIZE_ARG(ssize)); in test_evutil_snprintf()
|
| /libevent-2.1.12/m4/ |
| H A D | ax_prog_doxygen.m4 | 27 # specified to override the default 'a4wide' paper size. 368 # Paper size for PS and/or PDF:
|