From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 104963854804 for ; Tue, 16 Mar 2021 16:50:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 104963854804 Received: by mail-wr1-x42f.google.com with SMTP id x13so7792673wrs.9 for ; Tue, 16 Mar 2021 09:50:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tw02aSmUfktQUztGp/fYjFJuvv7VDIifDhxKgPk1hm4=; b=Gn4VlaZvii4SAEJmxPV2uGWzFMfG7v8eqlrlq6TABvUasdTnBv50Pbe6HITXdb7kji RC/V5lG1TCtA1Kj7hRvfw2JhTTfLb1DLfWwM9L6d6pPhBO3kb/ELcMdWUQ91vK+9zJkc z+1IHxVW1N0hPqbzcQAc0TRF85I/gzWtsCmOcNFlY4WTDroIfSKG3E238pjy0i+s3V7d u+6JDsx9b0QVwyrop/D6zB1G+xPwKj0chH8OQ3nyBz4H+x4PoaT2cAurzun6wROjPz4m Wdj6spC27OlSUt8/DsRbjtGnUqbAQ8w7IRDsRYywxO91wbnhPex550qmqjPG05Tcevl6 mCsg== X-Gm-Message-State: AOAM530vBUaDM/koqnUwriD5ohmbPLivou/+kPv8/N6TX1px1JZI1JXn bPDSLqr+TiBJqAzibs9vw0Q= X-Google-Smtp-Source: ABdhPJwU7xBH/Yg3pLZcWZ6QfVdkrhYt3icWtF/J2XMVUede0zCueTzEq8ERyme24ygcGUFm39kt9A== X-Received: by 2002:adf:c641:: with SMTP id u1mr5943933wrg.332.1615913449219; Tue, 16 Mar 2021 09:50:49 -0700 (PDT) Received: from [10.8.0.206] ([195.53.121.100]) by smtp.gmail.com with ESMTPSA id p10sm24014499wrw.33.2021.03.16.09.50.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Mar 2021 09:50:48 -0700 (PDT) Subject: Re: AW: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes To: Walter Harms Cc: "linux-man@vger.kernel.org" , "libc-alpha@sourceware.org" , "linux-kernel@vger.kernel.org" , Florian Weimer , "mtk.manpages@gmail.com" References: <20210214133907.157320-1-alx.manpages@gmail.com> <20210313192526.350200-5-alx.manpages@gmail.com> From: "Alejandro Colomar (man-pages)" Message-ID: <2c3f8638-4dad-566f-43c0-1579a6ae32ce@gmail.com> Date: Tue, 16 Mar 2021 17:50:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2021 16:50:51 -0000 Hi Walter, On 3/15/21 7:00 PM, Walter Harms wrote: > I have learned the other way around: > #include > 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 includes ? 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 . Thanks, Alex -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/