Lines Matching refs:write_req
109 static uv_fs_t write_req; variable
477 ASSERT_PTR_EQ(req, &write_req); in write_cb()
495 r = uv_fs_write(loop, &write_req, req->result, &iov, 1, -1, write_cb); in create_cb()
997 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
999 ASSERT_GE(write_req.result, 0); in fs_file_sync()
1000 uv_fs_req_cleanup(&write_req); in fs_file_sync()
1132 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_write_null_buffer()
1134 ASSERT_OK(write_req.result); in fs_file_write_null_buffer()
1135 uv_fs_req_cleanup(&write_req); in fs_file_write_null_buffer()
3100 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3102 ASSERT_GE(write_req.result, 0); in fs_file_open_append()
3103 uv_fs_req_cleanup(&write_req); in fs_file_open_append()
3117 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3119 ASSERT_GE(write_req.result, 0); in fs_file_open_append()
3120 uv_fs_req_cleanup(&write_req); in fs_file_open_append()
3176 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in TEST_IMPL()
3178 ASSERT_GE(write_req.result, 0); in TEST_IMPL()
3179 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
3306 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_read_file_eof()
3308 ASSERT_GE(write_req.result, 0); in fs_read_file_eof()
3309 uv_fs_req_cleanup(&write_req); in fs_read_file_eof()
3372 r = uv_fs_write(NULL, &write_req, open_req1.result, iovs, 2, 0, NULL); in fs_write_multiple_bufs()
3374 ASSERT_GE(write_req.result, 0); in fs_write_multiple_bufs()
3375 uv_fs_req_cleanup(&write_req); in fs_write_multiple_bufs()
3482 &write_req, in fs_write_alotof_bufs()
3489 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3490 uv_fs_req_cleanup(&write_req); in fs_write_alotof_bufs()
3525 ASSERT_EQ(lseek(open_req1.result, write_req.result, SEEK_SET), in fs_write_alotof_bufs()
3526 write_req.result); in fs_write_alotof_bufs()
3592 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_write_alotof_bufs_with_offset()
3594 ASSERT_EQ(write_req.result, filler_len); in fs_write_alotof_bufs_with_offset()
3595 uv_fs_req_cleanup(&write_req); in fs_write_alotof_bufs_with_offset()
3602 &write_req, in fs_write_alotof_bufs_with_offset()
3609 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3610 uv_fs_req_cleanup(&write_req); in fs_write_alotof_bufs_with_offset()
3640 offset + (int64_t)write_req.result); in fs_write_alotof_bufs_with_offset()
3649 offset + write_req.result, in fs_write_alotof_bufs_with_offset()
3855 result = uv_fs_write(loop, &write_req, pipe_fds[1], iovs, iovcount, -1, NULL); in test_fs_partial()
3856 ASSERT_EQ(write_req.result, result); in test_fs_partial()
3858 uv_fs_req_cleanup(&write_req); in test_fs_partial()
3904 r = uv_fs_write(NULL, &write_req, 0, NULL, 0, -1, NULL); in TEST_IMPL()
3908 ASSERT_NULL(write_req.path); in TEST_IMPL()
3909 ASSERT_NULL(write_req.ptr); in TEST_IMPL()
3911 ASSERT_NULL(write_req.file.pathw); in TEST_IMPL()
3912 ASSERT_NULL(write_req.fs.info.new_pathw); in TEST_IMPL()
3913 ASSERT_NULL(write_req.fs.info.bufs); in TEST_IMPL()
3915 ASSERT_NULL(write_req.new_path); in TEST_IMPL()
3916 ASSERT_NULL(write_req.bufs); in TEST_IMPL()
3918 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
3926 r = uv_fs_write(NULL, &write_req, 0, &iov, 0, -1, NULL); in TEST_IMPL()
3928 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
3938 r = uv_fs_write(loop, &write_req, 0, NULL, 0, -1, fail_cb); in TEST_IMPL()
3941 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
3950 r = uv_fs_write(loop, &write_req, 0, &iov, 0, -1, fail_cb); in TEST_IMPL()
3953 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
4057 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
4060 uv_fs_req_cleanup(&write_req); in TEST_IMPL()
4085 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4087 uv_fs_req_cleanup(&write_req); in fs_file_pos_common()
4103 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4105 uv_fs_req_cleanup(&write_req); in fs_file_pos_common()
4160 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_write()
4162 uv_fs_req_cleanup(&write_req); in fs_file_pos_write()
4199 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_append()
4201 uv_fs_req_cleanup(&write_req); in fs_file_pos_append()