Searched refs:scratch (Results 1 – 5 of 5) sorted by relevance
/libuv/test/ |
H A D | test-random.c | 27 static char scratch[256]; variable 32 char zero[sizeof(scratch)]; in random_cb() 37 ASSERT_PTR_EQ(buf, (void*) scratch); in random_cb() 41 ASSERT_OK(memcmp(scratch, zero, sizeof(zero))); in random_cb() 43 ASSERT_EQ(buflen, sizeof(scratch)); in random_cb() 45 ASSERT_NE(0, memcmp(scratch, zero, sizeof(zero))); in random_cb() 57 ASSERT_EQ(UV_EINVAL, uv_random(loop, &req, scratch, sizeof(scratch), -1, in TEST_IMPL() 59 ASSERT_EQ(UV_E2BIG, uv_random(loop, &req, scratch, -1, -1, random_cb)); in TEST_IMPL() 61 ASSERT_OK(uv_random(loop, &req, scratch, 0, 0, random_cb)); in TEST_IMPL() 67 ASSERT_OK(uv_random(loop, &req, scratch, sizeof(scratch), 0, random_cb)); in TEST_IMPL()
|
H A D | test-pipe-sendmsg.c | 113 char scratch[64]; in TEST_IMPL() local 131 msg.msg_control = (void*) scratch; in TEST_IMPL() 133 ASSERT_GE(sizeof(scratch), msg.msg_controllen); in TEST_IMPL()
|
H A D | benchmark-multi-accept.c | 63 char scratch[16]; member 168 buf->base = ctx->scratch; in ipc_alloc_cb() 169 buf->len = sizeof(ctx->scratch); in ipc_alloc_cb()
|
H A D | test-fs.c | 3230 char scratch[768]; in fs_read_bufs() local 3246 bufs[0] = uv_buf_init(scratch + 0, 256); in fs_read_bufs() 3247 bufs[1] = uv_buf_init(scratch + 256, 256); in fs_read_bufs() 3248 bufs[2] = uv_buf_init(scratch + 512, 128); in fs_read_bufs() 3249 bufs[3] = uv_buf_init(scratch + 640, 128); in fs_read_bufs()
|
/libuv/src/unix/ |
H A D | core.c | 752 char scratch[1 + UV__PATH_MAX]; in uv_cwd() local 767 if (getcwd(scratch, sizeof(scratch)) == NULL) in uv_cwd() 770 buffer = scratch; in uv_cwd() 781 if (buffer == scratch) { in uv_cwd()
|
Completed in 22 milliseconds