Message ID | 20210308185331.242176-13-alx.manpages@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=t6x5JzUH; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DvSFd0Ldvz9sWR for <incoming@patchwork.ozlabs.org>; Tue, 9 Mar 2021 05:55:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC36B3954457; Mon, 8 Mar 2021 18:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC36B3954457 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229662; bh=keKhGIASzR+KDmVSRdeBYflkvdCHb0zMub9XC6AIMKg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=t6x5JzUHvvBoAhZ6T6mG5s0BCqFSi//uPYGSdan0gbOli+pq4OKzEtQcPyanWwIRY o9VZ4idHqHRXc7usun/1DKo2wqIMm3Hv0BWIYDrY/M6W0G3eVnF/JVlcDqqebl3/5c XqgMcw3cCQp/X3VyY1i7sSmq9m+9Gz4Hpqa/tZtc= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 2F8FF3954C74 for <libc-alpha@sourceware.org>; Mon, 8 Mar 2021 18:54:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2F8FF3954C74 Received: by mail-wm1-x336.google.com with SMTP id n22so142393wmc.2 for <libc-alpha@sourceware.org>; Mon, 08 Mar 2021 10:54:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=keKhGIASzR+KDmVSRdeBYflkvdCHb0zMub9XC6AIMKg=; b=op5MRLGyNdbBd2WCI/tvJTjQjntpw99GLBMXZoWxPkf6CeBtFDwGHY6BqPOUMgDcoA eLbwIKn3VF+oOLrlcbzMR53IsVouBgurG2GSWUT2DGK10yrvzsCHNhWFgxT/Vh66pEVA /cRDe1vC4dw2jdlR1fSV8kfnMuEKm9swcu9DaYrqKewgOierfwaECjYV3FJClZCzmNBV PUVGVPMwrUXmZtIrH07G8ZyXah4NfV8RoJgfvW6nfOSFLiBQFLCSrnWCYrTY8cVjp7K8 1xeqdECUDmYlN+k26xUb0wVkJVX5TD0Ds22BdbVHucNcrzDfr1q3QDBO+SvqWEA8RFHb Upng== X-Gm-Message-State: AOAM531u0XdE7itQgXAflPuCqJ9LnKlpwbhWamnf+6Vu94U3kw9UQZ1B LyF+H7NpRGG58uxHfmLTm9g= X-Google-Smtp-Source: ABdhPJzeTc/UU+UJZgRfFRoj6CYGLrpNHMLRCnEm9lK2m3HgOU8H0Jk+L4wcdaWJ6jFXMNatBroYvg== X-Received: by 2002:a7b:cc1a:: with SMTP id f26mr197020wmh.19.1615229659419; Mon, 08 Mar 2021 10:54:19 -0800 (PST) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id i11sm19889921wro.53.2021.03.08.10.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:19 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 12/23] putgrent.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:21 +0100 Message-Id: <20210308185331.242176-13-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308185331.242176-1-alx.manpages@gmail.com> References: <20210308185331.242176-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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 <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: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man3: SYNOPSIS: Use 'restrict' in prototypes (batch 4)
|
expand
|
diff --git a/man3/putgrent.3 b/man3/putgrent.3 index 6ce977cb1..2a2801a96 100644 --- a/man3/putgrent.3 +++ b/man3/putgrent.3 @@ -12,7 +12,8 @@ putgrent \- write a group database entry to a file .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <grp.h> .PP -.BI "int putgrent(const struct group *" grp ", FILE *" stream ); +.BI "int putgrent(const struct group *restrict " grp \ +", FILE *restrict " stream ); .fi .SH DESCRIPTION The
glibc uses 'restrict' in putgrent(). Let's use it here too. .../glibc$ grep_glibc_prototype putgrent grp/grp.h:93: extern int putgrent (const struct group *__restrict __p, FILE *__restrict __f); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/putgrent.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)