Home
last modified time | relevance | path

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

123

/libevent-2.1.12/include/event2/
H A Dbuffer.h123 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 Dbufferevent.h387 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 Dbuffer_compat.h73 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 Dutil.h341 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 Dbufferevent_struct.h58 size_t low;
59 size_t high;
H A Dhttp_struct.h94 size_t headers_size;
95 size_t body_size;
/libevent-2.1.12/
H A Dbuffer.c160 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 Devutil_rand.c72 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 Devbuffer-internal.h102 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 Dratelim-internal.h50 size_t read_rate;
52 size_t read_maximum;
54 size_t write_rate;
56 size_t write_maximum;
H A Dmm-internal.h47 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 Dstrlcpy.c47 size_t
51 size_t siz;
55 register size_t n = siz;
H A Darc4random.c129 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 Dstrlcpy-internal.h15 size_t event_strlcpy_(char *dst, const char *src, size_t siz);
H A Dhttp-internal.h67 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 Devent_tagging.c204 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 Dbufferevent_async.c85 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 Dhttp.c129 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 Dbuffer_iocp.c102 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 Dregress_buffer.c74 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 Dbench_httpclient.c56 size_t total_n_bytes = 0;
64 size_t n_read;
77 size_t n = evbuffer_get_length(input); in readcb()
H A Dregress_ssl.c618 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 Dregress_bufferevent.c230 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 Dhostcheck.c138 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 Dopenssl_hostname_validation.c90 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()

123