Lines Matching refs:readv
10 * Testcase to check the basic functionality of the readv(2) system call.
13 * Create a IO vector, and attempt to readv() various components of it.
35 {&rd_iovec, 0, 0, "readv() with 0 I/O vectors"},
36 {&rd_iovec, 3, CHUNK, "readv() with NULL I/O vectors"},
37 {&big_iovec, 2, CHUNK, "readv() with too big I/O vectors"},
38 {&multi_iovec, 2, 3*CHUNK/4, "readv() with multiple I/O vectors"},
39 {&lockup_iovec, 2, CHUNK, "readv() with zero-len buffer"},
58 TEST(readv(fd, vec, tc->iov_count));
61 tst_res(TFAIL | TTERRNO, "readv() failed unexpectedly");
63 tst_res(TFAIL | TTERRNO, "readv() returned invalid value");
65 tst_res(TFAIL, "readv() returned unexpected value %ld",
85 tst_res(TPASS, "readv() correctly read %d bytes ", tc->exp_ret);