From patchwork Mon Mar 8 18:53:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449346 Return-Path: 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=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) 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=YVhPYOCT; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4DvSFj1TQQz9sW1 for ; Tue, 9 Mar 2021 05:55:05 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4EC2F3955407; Mon, 8 Mar 2021 18:54:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EC2F3955407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229663; bh=aXj66QydK9PB052W5oOABywajg3+p7kxv2g7HNu+5yI=; 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=YVhPYOCTjOvov9c02LTHFVgW2CZXdysyZFJaWTsRKAG0Lu9yzeOmL3wnbVxal160z fihytYMzlfZ3WNYbCUb+qOwKGhh9k5R7BFY6NrNzWHRNP+lVZXXI1j1c2zBcJwuqWd Br5b5y9rJAcp4p4v2wDUkd7J1qnVds4EcMOtYdY4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 483743954C09 for ; Mon, 8 Mar 2021 18:54:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 483743954C09 Received: by mail-wr1-x42a.google.com with SMTP id u16so12584146wrt.1 for ; Mon, 08 Mar 2021 10:54:21 -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=aXj66QydK9PB052W5oOABywajg3+p7kxv2g7HNu+5yI=; b=aht80eVUALSN7ywhYPmN1Jm3KPQMNYel5njPKx+Dr6+F8iQbQHJVuWW8BkcuwHpYXG wTi3g7uY/V6sBsQPBgCnNr2MWaq7pWCf9qN12yNDhKCZszgTrj8Lh5l887xRza7TGV7G qHF8vSQwOowdELx0CUqcO8Z1yRvcSi3jyfI1IC5U4XRJ5RSHtlx94w0jsLYfrZfIrXMC cbmMJL59IA3CJ8IPnVxABuT4WadUjbFQS6D8bQQjl9wnLyaY9rFwe0AernoeWxWxz314 3XQk2aj3dq1IqG6VjNwZICf+YGQ/N2i1/9wXtyXdHB/Yy7Bj6ImtZo9KlGEehJYIyuIV ggJQ== X-Gm-Message-State: AOAM533Y4L7h2i46dSFtDjCMfBpnen3X0zrrzIVQ5wxlxgTZ9Ko/2IPD UQKoO5MmNtcsX0RZmtdDv5f8ODgqnSA= X-Google-Smtp-Source: ABdhPJxOfbIlQjaAFue52j4+kFu95bTVQBmwb7jRrBJzBqOmRfRAShRYkF1T/xICkYaCyRjgJiM9fA== X-Received: by 2002:a5d:4c43:: with SMTP id n3mr4219080wrt.259.1615229660516; Mon, 08 Mar 2021 10:54:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:20 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 13/23] putpwent.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:22 +0100 Message-Id: <20210308185331.242176-14-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 X-Spam-Status: No, score=-12.0 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" glibc uses 'restrict' in putpwent(). Let's use it here too. .../glibc$ grep_glibc_prototype putpwent pwd/pwd.h:102: extern int putpwent (const struct passwd *__restrict __p, FILE *__restrict __f); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/putpwent.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/putpwent.3 b/man3/putpwent.3 index 4db31a78d..85caca9c7 100644 --- a/man3/putpwent.3 +++ b/man3/putpwent.3 @@ -36,7 +36,8 @@ putpwent \- write a password file entry .B #include .B #include .PP -.BI "int putpwent(const struct passwd *" p ", FILE *" stream ); +.BI "int putpwent(const struct passwd *restrict " p \ +", FILE *restrict " stream ); .fi .PP .RS -4