Lines Matching refs:read_req
108 static uv_fs_t read_req; variable
402 ASSERT_PTR_EQ(req, &read_req); in read_cb()
433 r = uv_fs_read(loop, &read_req, open_req1.result, &iov, 1, -1, in open_cb()
1014 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
1016 ASSERT_GE(read_req.result, 0); in fs_file_sync()
1018 uv_fs_req_cleanup(&read_req); in fs_file_sync()
1043 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
1045 ASSERT_GE(read_req.result, 0); in fs_file_sync()
1047 uv_fs_req_cleanup(&read_req); in fs_file_sync()
3134 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3137 ASSERT_EQ(26, read_req.result); in fs_file_open_append()
3141 uv_fs_req_cleanup(&read_req); in fs_file_open_append()
3209 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in TEST_IMPL()
3211 ASSERT_GE(read_req.result, 0); in TEST_IMPL()
3213 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
3239 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3241 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3243 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3252 &read_req, in fs_read_bufs()
3258 ASSERT_EQ(446, read_req.result); in fs_read_bufs()
3259 uv_fs_req_cleanup(&read_req); in fs_read_bufs()
3262 &read_req, in fs_read_bufs()
3268 ASSERT_EQ(read_req.result, /* 446 - 256 */ 190); in fs_read_bufs()
3269 uv_fs_req_cleanup(&read_req); in fs_read_bufs()
3324 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_read_file_eof()
3326 ASSERT_GE(read_req.result, 0); in fs_read_file_eof()
3328 uv_fs_req_cleanup(&read_req); in fs_read_file_eof()
3331 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, in fs_read_file_eof()
3332 read_req.result, NULL); in fs_read_file_eof()
3334 ASSERT_OK(read_req.result); in fs_read_file_eof()
3335 uv_fs_req_cleanup(&read_req); in fs_read_file_eof()
3394 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, 2, -1, NULL); in fs_write_multiple_bufs()
3396 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3399 uv_fs_req_cleanup(&read_req); in fs_write_multiple_bufs()
3402 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_write_multiple_bufs()
3404 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3405 uv_fs_req_cleanup(&read_req); in fs_write_multiple_bufs()
3410 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, 2, 0, NULL); in fs_write_multiple_bufs()
3412 if (read_req.result == sizeof(test_buf)) { in fs_write_multiple_bufs()
3414 uv_fs_req_cleanup(&read_req); in fs_write_multiple_bufs()
3415 r = uv_fs_read(NULL, &read_req, open_req1.result, &iovs[1], 1, read_req.result, NULL); in fs_write_multiple_bufs()
3417 ASSERT_EQ(read_req.result, sizeof(test_buf2)); in fs_write_multiple_bufs()
3419 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3423 uv_fs_req_cleanup(&read_req); in fs_write_multiple_bufs()
3426 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, in fs_write_multiple_bufs()
3429 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3430 uv_fs_req_cleanup(&read_req); in fs_write_multiple_bufs()
3511 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, iovcount, -1, NULL); in fs_write_alotof_bufs()
3515 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3522 uv_fs_req_cleanup(&read_req); in fs_write_alotof_bufs()
3529 &read_req, in fs_write_alotof_bufs()
3536 ASSERT_OK(read_req.result); in fs_write_alotof_bufs()
3537 uv_fs_req_cleanup(&read_req); in fs_write_alotof_bufs()
3620 r = uv_fs_read(NULL, &read_req, open_req1.result, in fs_write_alotof_bufs_with_offset()
3627 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3634 uv_fs_req_cleanup(&read_req); in fs_write_alotof_bufs_with_offset()
3645 &read_req, in fs_write_alotof_bufs_with_offset()
3652 ASSERT_OK(read_req.result); in fs_write_alotof_bufs_with_offset()
3653 uv_fs_req_cleanup(&read_req); in fs_write_alotof_bufs_with_offset()
3697 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
3714 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
3841 result = uv_fs_read(loop, &read_req, pipe_fds[0], read_iovs, iovcount, -1, NULL); in test_fs_partial()
3851 uv_fs_req_cleanup(&read_req); in test_fs_partial()
3872 result = uv_fs_read(loop, &read_req, pipe_fds[0], iovs, 1, -1, NULL); in test_fs_partial()
3874 uv_fs_req_cleanup(&read_req); in test_fs_partial()
3900 r = uv_fs_read(NULL, &read_req, 0, NULL, 0, -1, NULL); in TEST_IMPL()
3902 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
3921 r = uv_fs_read(NULL, &read_req, 0, &iov, 0, -1, NULL); in TEST_IMPL()
3923 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
3933 r = uv_fs_read(loop, &read_req, 0, NULL, 0, -1, fail_cb); in TEST_IMPL()
3936 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
3944 r = uv_fs_read(loop, &read_req, 0, &iov, 0, -1, fail_cb); in TEST_IMPL()
3947 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
4063 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
4067 uv_fs_req_cleanup(&read_req); in TEST_IMPL()
4091 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_common()
4094 uv_fs_req_cleanup(&read_req); in fs_file_pos_common()
4097 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4099 uv_fs_req_cleanup(&read_req); in fs_file_pos_common()
4108 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4110 uv_fs_req_cleanup(&read_req); in fs_file_pos_common()
4128 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_close_check()
4131 uv_fs_req_cleanup(&read_req); in fs_file_pos_close_check()
4165 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_write()
4167 uv_fs_req_cleanup(&read_req); in fs_file_pos_write()
4204 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_append()
4207 uv_fs_req_cleanup(&read_req); in fs_file_pos_append()