From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 8699A3857C4C for ; Mon, 5 Apr 2021 10:49:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8699A3857C4C Received: by mail-wr1-x431.google.com with SMTP id b9so2686255wrs.1 for ; Mon, 05 Apr 2021 03:49:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WRmyqozJtKAirKr6ADn/6arME49PNHlxIiJ29+TrdhE=; b=t8u94dA27P5VHy0CJ7WGXRaZlAj4r++/KgJPoUpdadH2Zehkj09MfNlAa4tezV0UVg v3t1VHjlHwCuedodQrzOP2M9KkfQR7AEs4uhBhscg8CQm38MtsavshhU1Zu9oDiwhl/S lMS1n1dSL9XDywKKC4fmYqKfm+P7g68kPA2S/7s2Jf+IFIm87OOuvf46yXIC7aclY7VB sbTb9ooMqMyRkVVniiZa4CrbZGoPQCwpWLmKPfPvw89EDYgqHN/VCCxAqpX/XsCuANhW xSTQ+kjdxHPcoS5D2MlmafW1QcSzBjyWXOdbglsMTXBYiohc8v+eH46IyGP37TPvePeA bXzA== X-Gm-Message-State: AOAM531l4SbXEMo89yYCxIjUtklmn2EmVP0r2CvXfBdU0RQxdSNjaj+4 pEn3OqQFbM8gIYO3Wa460pTvyDPkLDY= X-Google-Smtp-Source: ABdhPJysYXK9D3By3Fzy6CXTMN5PPOnPetU35kg2fhF9pgoG6Jui4DFcrAxIGVkq3e8IA2SbAce3Xw== X-Received: by 2002:adf:fc4b:: with SMTP id e11mr7334195wrs.169.1617619778441; Mon, 05 Apr 2021 03:49:38 -0700 (PDT) Received: from ?IPv6:2001:a61:2553:a401:cfc6:2039:a9ec:21ff? ([2001:a61:2553:a401:cfc6:2039:a9ec:21ff]) by smtp.gmail.com with ESMTPSA id s21sm23480960wmc.10.2021.04.05.03.49.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Apr 2021 03:49:37 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: Re: [PATCH v5 22/35] getpriority.2: Remove unused include To: Alejandro Colomar References: <20210403194026.102818-1-alx.manpages@gmail.com> <20210404115847.78166-23-alx.manpages@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: <451a4c27-58b7-e9d6-6927-c50ad9735c91@gmail.com> Date: Mon, 5 Apr 2021 12:49:37 +0200 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: <20210404115847.78166-23-alx.manpages@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, 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: Mon, 05 Apr 2021 10:49:41 -0000 Hi Alex, On 4/4/21 1:58 PM, Alejandro Colomar wrote: > is not needed to get the function declaration nor any > constant used by the function. It was only needed (before > POSIX.1) to get 'struct timeval', but that information would be > more suited for system_data_types(7), and not for this page. > > Signed-off-by: Alejandro Colomar Patch applied. Thanks, Michael > --- > man2/getpriority.2 | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/man2/getpriority.2 b/man2/getpriority.2 > index e3d518028..d6744989d 100644 > --- a/man2/getpriority.2 > +++ b/man2/getpriority.2 > @@ -47,7 +47,6 @@ > getpriority, setpriority \- get/set program scheduling priority > .SH SYNOPSIS > .nf > -.B #include > .B #include > .PP > .BI "int getpriority(int " which ", id_t " who ); > @@ -209,18 +208,6 @@ the real or effective user ID of the process \fIwho\fP. > All BSD-like systems (SunOS 4.1.3, Ultrix 4.2, > 4.3BSD, FreeBSD 4.3, OpenBSD-2.5, ...) behave in the same > manner as Linux 2.6.12 and later. > -.PP > -Including > -.I > -is not required these days, but increases portability. > -(Indeed, > -.I > -defines the > -.I rusage > -structure with fields of type > -.I struct timeval > -defined in > -.IR .) > .\" > .SS C library/kernel differences > Within the kernel, nice values are actually represented > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/