Skip to content

Commit

Permalink
preadv202: Convert docs to docparse
Browse files Browse the repository at this point in the history
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Ma Xinjian <[email protected]>
  • Loading branch information
MaXinjian authored and pevik committed Dec 16, 2024
1 parent 8b43e20 commit 58212e9
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions testcases/kernel/syscalls/preadv2/preadv202.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
* Author: Xiao Yang <[email protected]>
*/

/*
* Description:
* Check various errnos for preadv2(2).
* 1) preadv2() fails and sets errno to EINVAL if iov_len is invalid.
* 2) preadv2() fails and sets errno to EINVAL if the vector count iovcnt
* is less than zero.
* 3) preadv2() fails and sets errno to EOPNOTSUPP if flag is invalid.
* 4) preadv2() fails and sets errno to EFAULT when attempts to read into
* a invalid address.
* 5) preadv2() fails and sets errno to EBADF if file descriptor is invalid.
* 6) preadv2() fails and sets errno to EBADF if file descriptor is not
* open for reading.
* 7) preadv2() fails and sets errno to EISDIR when fd refers to a directory.
* 8) preadv2() fails and sets errno to ESPIPE if fd is associated with a pipe.
/*\
* [Description]
*
* Verify that, preadv2(2) fails and sets errno to
*
* 1. EINVAL if iov_len is invalid.
* 2. EINVAL if the vector count iovcnt is less than zero.
* 3. EOPNOTSUPP if flag is invalid.
* 4. EFAULT when attempting to read into an invalid address.
* 5. EBADF if file descriptor is invalid.
* 6. EBADF if file descriptor is not open for reading.
* 7. EISDIR when fd refers to a directory.
* 8. ESPIPE if fd is associated with a pipe.
*/

#define _GNU_SOURCE
Expand Down

0 comments on commit 58212e9

Please sign in to comment.