[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be6a5420c2de4cd5a772a878a173fd09@bfs.de>
Date: Mon, 15 Mar 2021 18:00:31 +0000
From: Walter Harms <wharms@....de>
To: Alejandro Colomar <alx.manpages@...il.com>,
"mtk.manpages@...il.com" <mtk.manpages@...il.com>
CC: "linux-man@...r.kernel.org" <linux-man@...r.kernel.org>,
"libc-alpha@...rceware.org" <libc-alpha@...rceware.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Florian Weimer <fweimer@...hat.com>
Subject: AW: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes
I have learned the other way around:
#include <sys/prctl.h>
Is a general system header to use that may include
the asm/prctrl.h what should never be included by
userspace programms.
jm2c,
re,
wh
________________________________________
Von: Alejandro Colomar <alx.manpages@...il.com>
Gesendet: Samstag, 13. März 2021 20:25:14
An: mtk.manpages@...il.com
Cc: Alejandro Colomar; linux-man@...r.kernel.org; libc-alpha@...rceware.org; linux-kernel@...r.kernel.org; Florian Weimer
Betreff: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes
WARNUNG: Diese E-Mail kam von außerhalb der Organisation. Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen den Absender und wissen, dass der Inhalt sicher ist.
AFAICS, there's no reason to include that.
All of the macros that this function uses
are already defined in the other headers.
Cc: glibc <libc-alpha@...rceware.org>
Signed-off-by: Alejandro Colomar <alx.manpages@...il.com>
---
man2/arch_prctl.2 | 1 -
1 file changed, 1 deletion(-)
diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2
index 8706cd1ec..d1b9e16f9 100644
--- a/man2/arch_prctl.2
+++ b/man2/arch_prctl.2
@@ -28,7 +28,6 @@ arch_prctl \- set architecture-specific thread state
.SH SYNOPSIS
.nf
.BR "#include <asm/prctl.h>" " /* Definition of " ARCH_* " constants */"
-.B #include <sys/prctl.h>
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
--
2.30.2
Powered by blists - more mailing lists