| /libevent-2.1.12/ |
| H A D | mm-internal.h | 47 void *event_mm_malloc_(size_t sz); 72 void *event_mm_realloc_(void *p, size_t sz); 75 #define mm_malloc(sz) event_mm_malloc_(sz) argument 78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument 81 #define mm_malloc(sz) malloc(sz) 82 #define mm_calloc(n, sz) calloc((n), (sz)) 84 #define mm_realloc(p, sz) realloc((p), (sz))
|
| H A D | select.c | 148 size_t sz = sop->event_fdsz; in select_dispatch() local 149 if (!(readset_out = mm_realloc(sop->event_readset_out, sz))) in select_dispatch() 152 if (!(writeset_out = mm_realloc(sop->event_writeset_out, sz))) { in select_dispatch()
|
| H A D | event.c | 3484 event_mm_malloc_(size_t sz) in event_mm_malloc_() argument 3486 if (sz == 0) in event_mm_malloc_() 3490 return mm_malloc_fn_(sz); in event_mm_malloc_() 3492 return malloc(sz); in event_mm_malloc_() 3502 size_t sz = count * size; in event_mm_calloc_() local 3506 p = mm_malloc_fn_(sz); in event_mm_calloc_() 3508 return memset(p, 0, sz); in event_mm_calloc_() 3553 event_mm_realloc_(void *ptr, size_t sz) in event_mm_realloc_() argument 3556 return mm_realloc_fn_(ptr, sz); in event_mm_realloc_() 3558 return realloc(ptr, sz); in event_mm_realloc_() [all …]
|
| H A D | buffer.c | 2848 int sz, result = -1; in evbuffer_add_vprintf() local 2878 sz = evutil_vsnprintf(buffer, space, fmt, aq); in evbuffer_add_vprintf() 2882 if (sz < 0) in evbuffer_add_vprintf() 2885 (size_t)sz >= EVBUFFER_CHAIN_MAX) in evbuffer_add_vprintf() 2887 if ((size_t)sz < space) { in evbuffer_add_vprintf() 2888 chain->off += sz; in evbuffer_add_vprintf() 2889 buf->total_len += sz; in evbuffer_add_vprintf() 2890 buf->n_add_for_cb += sz; in evbuffer_add_vprintf() 2894 result = sz; in evbuffer_add_vprintf() 3439 size_t sz = cb->size_before_suspend; [all …]
|
| /libevent-2.1.12/test/ |
| H A D | regress_buffer.c | 705 size_t sz; in test_evbuffer_reserve_many() local 715 sz = v[0].iov_len; in test_evbuffer_reserve_many() 728 sz = v[0].iov_len; in test_evbuffer_reserve_many() 734 n = evbuffer_reserve_space(buf, sz+128, v, 2); in test_evbuffer_reserve_many() 737 sz = v[0].iov_len + v[1].iov_len; in test_evbuffer_reserve_many() 738 tt_int_op(sz, >=, v[0].iov_len+128); in test_evbuffer_reserve_many() 748 n = evbuffer_reserve_space(buf, sz+128, v, 3); in test_evbuffer_reserve_many() 753 sz = v[0].iov_len + v[1].iov_len + v[2].iov_len; in test_evbuffer_reserve_many() 757 n = evbuffer_reserve_space(buf, sz+128, v, 2); in test_evbuffer_reserve_many() 1393 size_t sz; in test_evbuffer_readln() local [all …]
|
| H A D | regress_finalize.c | 182 tfff_realloc(void *p, size_t sz) in tfff_realloc() argument 184 return realloc(p,sz); in tfff_realloc()
|
| H A D | regress_http.c | 2909 size_t sz; in http_uriencode_test() local 2916 sz = -1; \ in http_uriencode_test() 2917 s2 = evhttp_uridecode((s), (plus), &sz); \ in http_uriencode_test() 2920 tt_int_op(sz,==,strlen(from)); \ in http_uriencode_test() 2927 s = evhttp_uridecode((from),(dp),&sz); \ in http_uriencode_test() 2930 tt_int_op(sz,==,strlen(want)); \ in http_uriencode_test() 2986 sz = 0; in http_uriencode_test() 2987 s = evhttp_uridecode("%00%00x%00%00", 1, &sz); in http_uriencode_test() 2988 tt_int_op(sz,==,5); in http_uriencode_test() 2994 sz = 0; in http_uriencode_test()
|
| H A D | regress_dns.c | 1892 cnt_malloc(size_t sz) in cnt_malloc() argument 1895 return malloc(sz); in cnt_malloc() 1899 cnt_realloc(void *old, size_t sz) in cnt_realloc() argument 1903 if (!sz) in cnt_realloc() 1905 return realloc(old, sz); in cnt_realloc()
|
| /libevent-2.1.12/include/event2/ |
| H A D | event.h | 1540 void *(*malloc_fn)(size_t sz), 1541 void *(*realloc_fn)(void *ptr, size_t sz),
|