| /libevent-2.1.12/include/event2/ |
| H A D | buffer.h | 123 size_t pos_in_chain; 141 size_t iov_len; 397 size_t datlen); 480 size_t datalen, void *extra); 499 const void *data, size_t datlen, 692 int evbuffer_drain(struct evbuffer *buf, size_t len); 804 size_t position, enum evbuffer_ptr_how how); 822 struct evbuffer_ptr *start, size_t *eol_len_out, 866 size_t orig_size; 868 size_t n_added; [all …]
|
| 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); 538 size_t lowmark, size_t highmark); 552 size_t *lowmark, size_t *highmark); 784 size_t read_rate, size_t read_burst, 785 size_t write_rate, size_t write_burst, 860 struct bufferevent_rate_limit_group *, size_t); 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_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg); 108 unsigned char *evbuffer_find(struct evbuffer *buffer, const unsigned char *what, size_t len);
|
| H A D | util.h | 341 evutil_date_rfc1123(char *date, const size_t datelen, const struct tm *tm); 597 int evutil_snprintf(char *buf, size_t buflen, const char *format, ...) 606 int evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap) 614 const char *evutil_inet_ntop(int af, const void *src, char *dst, size_t len); 667 int evutil_ascii_strncasecmp(const char *str1, const char *str2, size_t n); 684 size_t ai_addrlen; /* length of ai_addr */ 828 void evutil_secure_rng_get_bytes(void *buf, size_t n); 881 void evutil_secure_rng_add_bytes(const char *dat, size_t datlen);
|
| H A D | bufferevent_struct.h | 58 size_t low; 59 size_t high;
|
| H A D | http_struct.h | 94 size_t headers_size; 95 size_t body_size;
|
| /libevent-2.1.12/ |
| H A D | buffer.c | 160 size_t to_alloc; in evbuffer_chain_new() 606 size_t 609 size_t result; in evbuffer_get_length() 620 size_t 624 size_t result; in evbuffer_get_contiguous_space() 634 size_t 637 size_t res; in evbuffer_add_iovec() 1196 size_t nread; in evbuffer_copyout_from() 2078 size_t space = (size_t) CHAIN_SPACE_LEN(chain); in evbuffer_expand_fast_() 2249 size_t avail = (size_t) CHAIN_SPACE_LEN(chain); in evbuffer_read_setup_vecs_() [all …]
|
| H A D | evutil_rand.c | 72 ev_arc4random_buf(void *buf, size_t n) in ev_arc4random_buf() 88 void (*tptr)(void *,size_t) = in ev_arc4random_buf() 89 (void (*)(void*,size_t))arc4random_buf; in ev_arc4random_buf() 180 ev_arc4random_buf(void *buf, size_t n) in ev_arc4random_buf() 188 evutil_secure_rng_get_bytes(void *buf, size_t n) in evutil_secure_rng_get_bytes() 195 evutil_secure_rng_add_bytes(const char *buf, size_t n) in evutil_secure_rng_add_bytes() 198 n>(size_t)INT_MAX ? INT_MAX : (int)n); in evutil_secure_rng_add_bytes()
|
| H A D | evbuffer-internal.h | 102 size_t total_len; 106 size_t n_add_for_cb; 109 size_t n_del_for_cb; 160 #define EVBUFFER_CHAIN_MAX ((size_t)EV_SSIZE_MAX) 166 #define EVBUFFER_CHAIN_MAX ((size_t)EV_SSIZE_MAX) 176 size_t buffer_len; 185 size_t off; 317 int evbuffer_expand_fast_(struct evbuffer *, size_t, int);
|
| H A D | ratelim-internal.h | 50 size_t read_rate; 52 size_t read_maximum; 54 size_t write_rate; 56 size_t write_maximum;
|
| H A D | mm-internal.h | 47 void *event_mm_malloc_(size_t sz); 58 void *event_mm_calloc_(size_t count, size_t size); 72 void *event_mm_realloc_(void *p, size_t sz);
|
| H A D | strlcpy.c | 47 size_t 51 size_t siz; 55 register size_t n = siz;
|
| H A D | arc4random.c | 129 read_all(int fd, unsigned char *buf, size_t count) in read_all() 131 size_t numread = 0; in read_all() 179 size_t len, n; in arc4_seed_getrandom() 216 size_t len, n; in arc4_seed_sysctl_bsd() 297 size_t n; in arc4_seed_urandom_helper_() 488 arc4random_buf(void *buf_, size_t n) in arc4random_buf()
|
| H A D | strlcpy-internal.h | 15 size_t event_strlcpy_(char *dst, const char *src, size_t siz);
|
| H A D | http-internal.h | 67 size_t max_headers_size; 155 size_t default_max_headers_size; 203 int evhttp_decode_uri_internal(const char *uri, size_t length,
|
| H A D | event_tagging.c | 204 size_t len = evbuffer_get_length(evbuf); in decode_tag_internal() 206 size_t count = 0; in decode_tag_internal() 508 if (result < 0 || (size_t)result > len) /* XXX Should this be != rather than > ?*/ in evtag_unmarshal_int() 534 if (result < 0 || (size_t)result > len) /* XXX Should this be != rather than > ?*/ in evtag_unmarshal_int64() 544 size_t len) in evtag_unmarshal_fixed() 554 if ((size_t)tag_len != len) in evtag_unmarshal_fixed()
|
| H A D | bufferevent_async.c | 85 size_t read_in_progress; 86 size_t write_in_progress; 209 size_t at_most; in bev_async_consider_writing() 228 if (at_most >= (size_t)limit && limit >= 0) in bev_async_consider_writing() 253 size_t cur_size; in bev_async_consider_reading() 254 size_t read_high; in bev_async_consider_reading() 255 size_t at_most; in bev_async_consider_reading() 284 if (at_most >= (size_t)limit && limit >= 0) in bev_async_consider_reading()
|
| H A D | http.c | 129 size_t hostlen, char *serv, size_t servlen, int flags) in fake_getnameinfo() 231 static size_t 267 size_t i; in evhttp_htmlescape() 913 size_t buflen; in evhttp_handle_chunked_read() 1164 size_t total_len; in evhttp_read_cb() 1726 size_t method_len; in evhttp_parse_request_line() 2030 size_t len; in evhttp_parse_firstline_() 2103 size_t len; in evhttp_parse_headers_() 3012 size_t num_responses; 3338 size_t offset = 0; in evhttp_dispatch_callback() [all …]
|
| H A D | buffer_iocp.c | 102 size_t remaining, len; in evbuffer_commit_read_() 194 } else if (at_most < 0 || (size_t)at_most > buf->total_len) { in evbuffer_launch_write_() 210 if ((size_t)at_most > chain->off) { in evbuffer_launch_write_() 246 evbuffer_launch_read_(struct evbuffer *buf, size_t at_most, in evbuffer_launch_read_()
|
| /libevent-2.1.12/test/ |
| H A D | regress_buffer.c | 74 size_t sum = 0; in evbuffer_validate_() 126 evbuffer_get_waste(struct evbuffer *buf, size_t *allocatedp, size_t *wastedp, size_t *usedp) in evbuffer_get_waste() 129 size_t a, w, u; in evbuffer_get_waste() 178 size_t sz_tmp; in test_evbuffer() 608 size_t remaining; in test_evbuffer_reserve2() 705 size_t sz; in test_evbuffer_reserve_many() 832 size_t a,w,u; in test_evbuffer_expand() 1393 size_t sz; in test_evbuffer_readln() 1634 size_t eol_len; in test_evbuffer_search_eol() 1716 size_t a,w,u; in test_evbuffer_iterative() [all …]
|
| H A D | bench_httpclient.c | 56 size_t total_n_bytes = 0; 64 size_t n_read; 77 size_t n = evbuffer_get_length(input); in readcb()
|
| H A D | regress_ssl.c | 618 size_t read; 619 size_t write; 804 size_t to_read; 805 size_t wm_high; 806 size_t limit; 807 size_t get; 817 size_t len = evbuffer_get_length(in); in wm_transfer() 818 size_t drain = len < ctx->to_read ? len : ctx->to_read; in wm_transfer() 898 size_t payload_len = 1<<10; in regress_bufferevent_openssl_wm() 899 size_t wm_high = 5<<10; in regress_bufferevent_openssl_wm()
|
| H A D | regress_bufferevent.c | 230 size_t locked /** allow recursive locking */; 238 size_t nr_locks; 245 size_t i; in lu_find() 410 size_t low, high; in test_bufferevent_watermarks_impl() 696 size_t n; in reader_eventcb() 1107 size_t low, high, len; in trigger_readcb() 1258 size_t header_size; 1259 size_t total_read; 1282 size_t payload_size; in bufferevent_filter_data_stuck_inputcb() 1283 size_t header_size = 0; in bufferevent_filter_data_stuck_inputcb() [all …]
|
| /libevent-2.1.12/sample/ |
| H A D | hostcheck.c | 138 static int Curl_raw_nequal(const char *first, const char *second, size_t max) in Curl_raw_nequal() 167 size_t prefixlen, suffixlen; in hostmatch()
|
| H A D | openssl_hostname_validation.c | 90 if ((size_t)ASN1_STRING_length(common_name_asn1) != strlen(common_name_str)) { in matches_common_name() 134 … if ((size_t)ASN1_STRING_length(current_name->d.dNSName) != strlen(dns_name)) { in matches_subject_alternative_name()
|