Message ID | 20210308185331.242176-15-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=2620:52:3:1:0:246e:9693:128c; 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=YFe75gC2; 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 4DvSFn0Zcvz9sW1 for <incoming@patchwork.ozlabs.org>; Tue, 9 Mar 2021 05:55:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4675395540F; Mon, 8 Mar 2021 18:54:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4675395540F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229664; bh=bYOrpxfs6Ak4395zGnKfDc3HmQh5HUAls5Zb8ZD/JaE=; 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=YFe75gC2HRqXmzDkoDKvkqBevC73KtKaf14K8jvJqapJlQjNwchJbMN8eUggFd4PV Qeg+TciodSJ1BDMNW/D9VA4p0XZFfL9T28066UrgljviPLDPk0wV5sa1AnFsAzY6xx 2Q7exxYGtsDl+DFv6O8GHWCJJvwpcoDfSNewJ9PU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 72EAF3955400 for <libc-alpha@sourceware.org>; Mon, 8 Mar 2021 18:54:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 72EAF3955400 Received: by mail-wr1-x42d.google.com with SMTP id 7so12624551wrz.0 for <libc-alpha@sourceware.org>; Mon, 08 Mar 2021 10:54:22 -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=bYOrpxfs6Ak4395zGnKfDc3HmQh5HUAls5Zb8ZD/JaE=; b=SGFEr6Yw/9zuagJCIHDzTWGkVU+DM03qQ/NdOP85nE0Q8QWfjrC45MdHnUowolziCz FkRIZcJkON8928EPLaD8AU8QcQj1DC84SPbymM2i/KRwHLkV3BhXXwxxBUaBkuXk9qcZ GeDCvllaIL/b3U98+bqIqGP8kjkjBW3Oio3A1B5EHqnrhavE98Ds5smGOHTjBl6o1+yy Awtv41RzpOMxhj0VfMCD2CfkUESlMCXUP1eRf2bJD397l4+a87rvr6o3lRADoLOILN1W 4yK5ibHVP3XRMRPnecH4gIQXu4lJokxz9vEbVqgJ9vWjYlyUV1Ce9jAkOgYkCwIlyAXQ +4+w== X-Gm-Message-State: AOAM5311B+SAoTeDoY2lJpzOn1bGsXh8XT0D8aHDl3pG5wTS8nCfW6dY hZOGhpknrVt8nWa5ZWF1grY= X-Google-Smtp-Source: ABdhPJzaRFy9nx/Pbpi1THaCmoOu0VABXX0/RKrlX9+RaQ6+ZkIMSWFoWcmhIIvJAQsbUNyz/jopUg== X-Received: by 2002:a05:6000:1a8c:: with SMTP id f12mr24298650wry.173.1615229661692; Mon, 08 Mar 2021 10:54:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:21 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 14/23] puts.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:23 +0100 Message-Id: <20210308185331.242176-15-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=-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 <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/puts.3 b/man3/puts.3 index 3b0fb9d2a..e9b0b0c8a 100644 --- a/man3/puts.3 +++ b/man3/puts.3 @@ -34,8 +34,8 @@ fputc, fputs, putc, putchar, puts \- output of characters and strings .BI "int putc(int " c ", FILE *" stream ); .BI "int putchar(int " c ); .PP -.BI "int fputs(const char *" "s" ", FILE *" "stream" ); -.BI "int puts(const char *" "s" ); +.BI "int fputs(const char *restrict " s ", FILE *restrict " stream ); +.BI "int puts(const char *" s ); .fi .SH DESCRIPTION .BR fputc ()
Both POSIX and glibc use 'restrict' in fputs(). Let's use it here too. .../glibc$ grep_glibc_prototype fputs libio/stdio.h:631: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/puts.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)