Message ID | be6a5420c2de4cd5a772a878a173fd09@bfs.de |
---|---|
State | Not applicable |
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 12F043858C27; Mon, 15 Mar 2021 18:00:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12F043858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615831238; bh=CkaN9AZ03poPxA7f4gJYYTjbp5p4x6TZ6uzceZecgPM=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=WcF1wOWe25MUcMAvMIsthxMJ8YxZ93hXWkJp5O/yARSS8S3v1TOiv90fkGjVx7vBA O07MWuI2GILhUf928r3CXOQ1rIXWCvVLMPrz1i9FA3fItGdJeUJc17n6pBtuJztUcp JJlHy26GTajNPCC9sNRyVJoO1gew3NTVxo5PlbYI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mx01-sz.bfs.de (mx01-sz.bfs.de [194.94.69.67]) by sourceware.org (Postfix) with ESMTPS id 5AD993858C27 for <libc-alpha@sourceware.org>; Mon, 15 Mar 2021 18:00:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5AD993858C27 Received: from SRVEX01-SZ.bfs.intern (exchange-sz.bfs.de [10.129.90.31]) by mx01-sz.bfs.de (Postfix) with ESMTPS id 6E6BD20424; Mon, 15 Mar 2021 19:00:32 +0100 (CET) Received: from SRVEX01-SZ.bfs.intern (10.129.90.31) by SRVEX01-SZ.bfs.intern (10.129.90.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.2; Mon, 15 Mar 2021 19:00:31 +0100 Received: from SRVEX01-SZ.bfs.intern ([fe80::7d2d:f9cb:2761:d24a]) by SRVEX01-SZ.bfs.intern ([fe80::7d2d:f9cb:2761:d24a%13]) with mapi id 15.01.2176.009; Mon, 15 Mar 2021 19:00:31 +0100 To: Alejandro Colomar <alx.manpages@gmail.com>, "mtk.manpages@gmail.com" <mtk.manpages@gmail.com> Subject: AW: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes Thread-Topic: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes Thread-Index: AQHXGD7XAxTSL2NJaE+7W5iBTQCmt6qFVHc7 Date: Mon, 15 Mar 2021 18:00:31 +0000 Message-ID: <be6a5420c2de4cd5a772a878a173fd09@bfs.de> References: <20210214133907.157320-1-alx.manpages@gmail.com>, <20210313192526.350200-5-alx.manpages@gmail.com> In-Reply-To: <20210313192526.350200-5-alx.manpages@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.137.16.39] x-tm-as-product-ver: SMEX-14.0.0.3080-8.6.1012-26032.001 x-tm-as-result: No-10-3.260300-5.000000 x-tmase-matchedrid: CDTSlS88fVTRubRCcrbc5grcxrzwsv5u3dCmvEa6IiGoLZarzrrPmY8c NcoztgfFQVZ/emx6g8Y8CQr3JqGFgWbK2Lp4BaXTs35egIUyB0yNY/pqxovzxWww+4tkH8hH/eb 8AiQy4VrAt83TuKuapBv4L0374LF/3huBcHFqgEv1P1OLgOxuG9Mtvp2vZ9b08YXezpzoZTpAwV xIwdMCgWe4Wa1eP/asXl5aEpWgX5dEVewvaIzmdXYZxYoZm58F9e5am3m57X1wh5cseF+Y9lMe5 Blkpry7rdoLblq9S5rZsNA4lAbe+0kjllSXrjtQgxsfzkNRlfLdB/CxWTRRuwihQpoXbuXFx/mZ 2/tYMNdk6kcSjxdDoZky1yTNkSniULYWWJ6MTvne3IkDeq6Pe3VdQuCkdZvmVs3mQrPFErZ4Nj9 8aMLOkXuBattE+CJ0qcFxC+mrhy1WwS3yrrDBJd6uf8BQDO/7JXUq4O4yYIf6svlVb6h9lw== x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No x-tmase-result: 10-3.260300-5.000000 x-tmase-version: SMEX-14.0.0.3080-8.6.1012-26032.001 x-tm-snts-smtp: DF8E54FA244AE94B072DC9C21BA856F55E500E6D160883E88D602C86E137F0B82000:9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spamd-Result: default: False [-16.37 / 7.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[bfs.de:s=dkim201901]; BAYES_HAM(-2.87)[99.44%]; WHITELIST_LOCAL_IP(-15.00)[10.129.90.31]; NEURAL_HAM(-0.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_05, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FOREIGN_BODY, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Walter Harms via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Walter Harms <wharms@bfs.de> Cc: Florian Weimer <fweimer@redhat.com>, "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>, "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
AW: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes
|
|
Commit Message
Walter Harms
March 15, 2021, 6 p.m. UTC
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
Comments
Hi Walter, On 3/15/21 7:00 PM, Walter Harms wrote: > 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. > Are you sure that <sys/prctl.h> includes <asm/prctl.h>? user@debian:/usr/include$ grep -rn '\bARCH_' asm-generic/statfs.h:42:#ifndef ARCH_PACK_STATFS64 asm-generic/statfs.h:43:#define ARCH_PACK_STATFS64 asm-generic/statfs.h:59:} ARCH_PACK_STATFS64; asm-generic/statfs.h:65:#ifndef ARCH_PACK_COMPAT_STATFS64 asm-generic/statfs.h:66:#define ARCH_PACK_COMPAT_STATFS64 asm-generic/statfs.h:82:} ARCH_PACK_COMPAT_STATFS64; x86_64-linux-gnu/asm/statfs.h:10:#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) x86_64-linux-gnu/asm/prctl.h:5:#define ARCH_SET_GS 0x1001 x86_64-linux-gnu/asm/prctl.h:6:#define ARCH_SET_FS 0x1002 x86_64-linux-gnu/asm/prctl.h:7:#define ARCH_GET_FS 0x1003 x86_64-linux-gnu/asm/prctl.h:8:#define ARCH_GET_GS 0x1004 x86_64-linux-gnu/asm/prctl.h:10:#define ARCH_GET_CPUID 0x1011 x86_64-linux-gnu/asm/prctl.h:11:#define ARCH_SET_CPUID 0x1012 x86_64-linux-gnu/asm/prctl.h:13:#define ARCH_MAP_VDSO_X32 0x2001 x86_64-linux-gnu/asm/prctl.h:14:#define ARCH_MAP_VDSO_32 0x2002 x86_64-linux-gnu/asm/prctl.h:15:#define ARCH_MAP_VDSO_64 0x2003 x86_64-linux-gnu/asm/auxvec.h:13:/* entries in ARCH_DLINFO: */ user@debian:/usr/include$ grep -rn 'asm/prctl.h' user@debian:/usr/include$ At least on my system, no header seems to be including <asm/prctl.h>. Thanks, Alex
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