[LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments
Jinseok Kim
always.starving0@gmail.com
Sun May 24 18:17:03 CEST 2026
Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
---
Changes in v2:
- Split indentation changes into a separate commit
- Link to v1: https://lore.kernel.org/ltp/20260503085544.16915-2-always.starving0@gmail.com
---
testcases/kernel/syscalls/getpid/getpid01.c | 3 ++-
testcases/kernel/syscalls/getpid/getpid02.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/getpid/getpid01.c b/testcases/kernel/syscalls/getpid/getpid01.c
index d9ba0953c..8fcd351d6 100644
--- a/testcases/kernel/syscalls/getpid/getpid01.c
+++ b/testcases/kernel/syscalls/getpid/getpid01.c
@@ -4,7 +4,8 @@
*/
/*\
- * Verify that getpid() system call returns process ID in range <2, PID_MAX>.
+ * Verify that :manpage:`getpid(2)` system call returns process ID in range
+ * <2, PID_MAX>.
*/
#include <stdlib.h>
diff --git a/testcases/kernel/syscalls/getpid/getpid02.c b/testcases/kernel/syscalls/getpid/getpid02.c
index 3da853d48..4d2402932 100644
--- a/testcases/kernel/syscalls/getpid/getpid02.c
+++ b/testcases/kernel/syscalls/getpid/getpid02.c
@@ -6,8 +6,10 @@
/*\
* Check that:
*
- * - fork() in parent returns the same pid as getpid() in child
- * - getppid() in child returns the same pid as getpid() in parent
+ * - :manpage:`fork(2)` in parent returns the same pid as
+ * :manpage:`getpid(2)` in child
+ * - :manpage:`getppid(2)` in child returns the same pid as
+ * :manpage:`getpid(2)` in parent
*/
#include <errno.h>
--
2.43.0
More information about the ltp
mailing list