[PATCH] prctl.2: Fix typo

Bruno Haible
2023-10-29T20:58:04Z

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

The synopsis of the prctl.2 page has:

int prctl(int option, ...

This makes no sense, because
- the first argument is not optional; it is mandatory.
- the title of the page is "operations on a process or thread".

It is thus clear that the first argument indicates the operation to perform.

Find attached the correction.

[-- Attachment #2: 0001-prctl.2-Fix-typo.patch --]
[-- Type: text/x-patch, Size: 684 bytes --]

From a373bed1d7cd571cffc5ea1a8c6377efbe8fa51c Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sun, 29 Oct 2023 21:46:49 +0100
Subject: [PATCH] prctl.2: Fix typo

---
man2/prctl.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/prctl.2 b/man2/prctl.2
index f72aeb700..b5be0def6 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -46,7 +46,7 @@ Standard C library
.nf
.B #include <sys/prctl.h>
.PP
-.BI "int prctl(int " option ", ..."
+.BI "int prctl(int " operation ", ..."
.BI " \fR/*\fP unsigned long " arg2 ", unsigned long " arg3 ,
.BI " unsigned long " arg4 ", unsigned long " arg5 " \fR*/\fP );"
.fi
--
2.34.1