Skip to contentSkip to conversation

llistxattr02: Convert docs to docparse

PATCH In review Ma Xinjian via ltp 2 participants 3 messages Oct 31, 2024 – Nov 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 llistxattr02: Convert docs to docparse

---
 .../kernel/syscalls/llistxattr/llistxattr02.c | 34 ++++++++-----------
 1 file changed, 14 insertions(+), 20 deletions(-)
testcases/kernel/syscalls/llistxattr/llistxattr02.c +14 -20
index 6974f013b..c91d05f35 100644
@@ -1,25 +1,19 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Xiao Yang <[email protected]>
-*/
-
-/*
-* Test Name: llistxattr02
-*
-* Description:
-* 1) llistxattr(2) fails if the size of the list buffer is too small
-* to hold the result.
-* 2) llistxattr(2) fails if path is an empty string.
-* 3) llistxattr(2) fails when attempted to read from a invalid address.
-* 4) llistxattr(2) fails if path is longer than allowed.
-*
-* Expected Result:
-* 1) llistxattr(2) should return -1 and set errno to ERANGE.
-* 2) llistxattr(2) should return -1 and set errno to ENOENT.
-* 3) llistxattr(2) should return -1 and set errno to EFAULT.
-* 4) llistxattr(2) should return -1 and set errno to ENAMETOOLONG.
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Xiao Yang <[email protected]>
+ */
+
+/*\
+ * [Description]
+ *
+ * Verify llistxattr(2) returns -1 and set proper errno:
+ *
+ * - ERANGE if the size of the list buffer is too small to hold the result
+ * - ENOENT if path is an empty string
+ * - EFAULT when attempted to read from a invalid address
+ * - ENAMETOOLONG if path is longer than allowed
+ */
 
 #include "config.h"
 #include <errno.h>
Signature · 5 lines
2.42.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
author Reviewed-by Wei Gao on v1 1/1
#1 lore raw
Quoted 37 lines · Ma Xinjian via ltp
---
 .../kernel/syscalls/llistxattr/llistxattr02.c | 34 ++++++++-----------
 1 file changed, 14 insertions(+), 20 deletions(-)
testcases/kernel/syscalls/llistxattr/llistxattr02.c +5 -20
index 6974f013b..c91d05f35 100644
@@ -1,25 +1,19 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Xiao Yang <[email protected]>
-*/
-
-/*
-* Test Name: llistxattr02
-*
-* Description:
-* 1) llistxattr(2) fails if the size of the list buffer is too small
-* to hold the result.
-* 2) llistxattr(2) fails if path is an empty string.
-* 3) llistxattr(2) fails when attempted to read from a invalid address.
-* 4) llistxattr(2) fails if path is longer than allowed.
-*
-* Expected Result:
-* 1) llistxattr(2) should return -1 and set errno to ERANGE.
-* 2) llistxattr(2) should return -1 and set errno to ENOENT.
-* 3) llistxattr(2) should return -1 and set errno to EFAULT.
-* 4) llistxattr(2) should return -1 and set errno to ENAMETOOLONG.
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Xiao Yang <[email protected]>
+ */
+
+/*\

testcases/kernel/syscalls/llistxattr/llistxattr02.c line 17

Quoted 10 lines
testcases/kernel/syscalls/llistxattr/llistxattr02.c +9 -0
+ * [Description]
+ *
+ * Verify llistxattr(2) returns -1 and set proper errno:
+ *
+ * - ERANGE if the size of the list buffer is too small to hold the result
+ * - ENOENT if path is an empty string
+ * - EFAULT when attempted to read from a invalid address
+ * - ENAMETOOLONG if path is longer than allowed
+ */
 
Quoted 8 lines
testcases/kernel/syscalls/llistxattr/llistxattr02.c +0 -0
 #include "config.h"
 #include <errno.h>
Signature · 5 lines
2.42.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Hi Ma Xinjian, Wei,

thanks, merged this and second patch!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp