Home | History | Annotate | Download | only in preadv2

Lines Matching refs:preadv2

9  * Check various errnos for preadv2(2).
10 * 1) preadv2() fails and sets errno to EINVAL if iov_len is invalid.
11 * 2) preadv2() fails and sets errno to EINVAL if the vector count iovcnt
13 * 3) preadv2() fails and sets errno to EOPNOTSUPP if flag is invalid.
14 * 4) preadv2() fails and sets errno to EFAULT when attempts to read into
16 * 5) preadv2() fails and sets errno to EBADF if file descriptor is invalid.
17 * 6) preadv2() fails and sets errno to EBADF if file descriptor is not
19 * 7) preadv2() fails and sets errno to EISDIR when fd refers to a directory.
20 * 8) preadv2() fails and sets errno to ESPIPE if fd is associated with a pipe.
28 #include "lapi/preadv2.h"
74 TEST(preadv2(*tc->fd, tc->name, tc->count, tc->offset, tc->flag));
77 tst_res(TFAIL, "preadv2() succeeded unexpectedly");
82 tst_res(TPASS | TTERRNO, "preadv2() failed as expected");
86 tst_res(TFAIL | TTERRNO, "preadv2() failed unexpectedly, expected %s",