[LTP] [PATCH] preadv202: Convert docs to docparse

Ma Xinjian maxj.fnst@fujitsu.com
Fri Nov 15 08:01:53 CET 2024


Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 testcases/kernel/syscalls/preadv2/preadv202.c | 27 +++++++++----------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/testcases/kernel/syscalls/preadv2/preadv202.c b/testcases/kernel/syscalls/preadv2/preadv202.c
index fd3b7c9d7..f7279e0ad 100644
--- a/testcases/kernel/syscalls/preadv2/preadv202.c
+++ b/testcases/kernel/syscalls/preadv2/preadv202.c
@@ -4,20 +4,19 @@
  * Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
  */
 
-/*
- * 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
-- 
2.47.0



More information about the ltp mailing list