Skip to contentSkip to conversation

preadv202: Convert docs to docparse

PATCH New Ma Xinjian via ltp 1 participant 1 message Nov 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 preadv202: Convert docs to docparse

---
 testcases/kernel/syscalls/preadv2/preadv202.c | 27 +++++++++----------
 1 file changed, 13 insertions(+), 14 deletions(-)
testcases/kernel/syscalls/preadv2/preadv202.c +13 -14
index fd3b7c9d7..f7279e0ad 100644
@@ -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
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp