/libuv/docs/code/multi-echo-server/ |
H A D | worker.c | 22 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 23 buf->base = malloc(suggested_size); in alloc_buffer() 24 buf->len = suggested_size; in alloc_buffer()
|
H A D | main.c | 26 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 27 buf->base = malloc(suggested_size); in alloc_buffer() 28 buf->len = suggested_size; in alloc_buffer()
|
/libuv/docs/code/pipe-echo-server/ |
H A D | main.c | 25 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 26 buf->base = malloc(suggested_size); in alloc_buffer() 27 buf->len = suggested_size; in alloc_buffer()
|
/libuv/docs/code/tcp-echo-server/ |
H A D | main.c | 23 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 24 buf->base = (char*) malloc(suggested_size); in alloc_buffer() 25 buf->len = suggested_size; in alloc_buffer()
|
/libuv/docs/code/dns/ |
H A D | main.c | 8 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 9 buf->base = malloc(suggested_size); in alloc_buffer() 10 buf->len = suggested_size; in alloc_buffer()
|
/libuv/docs/code/uvtee/ |
H A D | main.c | 18 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 19 *buf = uv_buf_init((char*) malloc(suggested_size), suggested_size); in alloc_buffer()
|
/libuv/docs/code/udp-dhcp/ |
H A D | main.c | 12 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument 13 buf->base = malloc(suggested_size); in alloc_buffer() 14 buf->len = suggested_size; in alloc_buffer()
|
/libuv/test/ |
H A D | test-ipc-heavy-traffic-deadlock-bug.c | 82 size_t suggested_size, in alloc_cb() argument 84 buf->base = malloc(suggested_size); in alloc_cb() 85 buf->len = (int) suggested_size; in alloc_cb()
|
H A D | test-tcp-close-after-read-timeout.c | 37 size_t suggested_size, 59 size_t suggested_size, in on_client_alloc() argument 84 size_t suggested_size, in on_connection_alloc() argument
|
H A D | test-stdio-over-pipes.c | 77 size_t suggested_size, in on_alloc() argument 199 size_t suggested_size, in on_read_alloc() argument 201 buf->base = malloc(suggested_size); in on_read_alloc() 202 buf->len = suggested_size; in on_read_alloc()
|
H A D | test-udp-try-send.c | 41 size_t suggested_size, in alloc_cb() argument 45 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | blackhole-server.c | 36 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf); 64 size_t suggested_size, in alloc_cb() argument
|
H A D | test-udp-send-immediate.c | 41 size_t suggested_size, in alloc_cb() argument 45 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | echo-server.c | 154 size_t suggested_size, in echo_alloc() argument 156 buf->base = malloc(suggested_size); in echo_alloc() 157 buf->len = suggested_size; in echo_alloc() 161 size_t suggested_size, in slab_alloc() argument
|
H A D | test-tcp-write-to-half-open-connection.c | 33 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf); 69 size_t suggested_size, in alloc_cb() argument
|
H A D | test-udp-reuseport.c | 98 size_t suggested_size, in alloc_cb() argument 100 buf->base = malloc(suggested_size); in alloc_cb() 101 buf->len = (int) suggested_size; in alloc_cb()
|
H A D | test-udp-alloc-cb-fail.c | 45 size_t suggested_size, in sv_alloc_cb() argument 55 size_t suggested_size, in cl_alloc_cb() argument
|
H A D | test-udp-multicast-join.c | 45 size_t suggested_size, in alloc_cb() argument 49 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | test-udp-send-and-recv.c | 45 size_t suggested_size, in alloc_cb() argument 49 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | test-udp-send-unreachable.c | 45 size_t suggested_size, in alloc_cb() argument 49 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | test-udp-multicast-join6.c | 57 size_t suggested_size, in alloc_cb() argument 61 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | benchmark-multi-accept.c | 90 size_t suggested_size, 97 size_t suggested_size, 164 size_t suggested_size, in ipc_alloc_cb() argument 314 size_t suggested_size, in sv_alloc_cb() argument
|
H A D | test-getsockname.c | 46 static void alloc(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) { in alloc() argument 47 buf->base = malloc(suggested_size); in alloc() 48 buf->len = suggested_size; in alloc()
|
H A D | test-udp-connect.c | 44 size_t suggested_size, in alloc_cb() argument 48 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|
H A D | benchmark-udp-pummel.c | 63 size_t suggested_size, in alloc_cb() argument 66 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
|