Message ID | 20210311223330.722437-7-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=s8TtKXeZ; 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 4DxNz92RpJz9sSC for <incoming@patchwork.ozlabs.org>; Fri, 12 Mar 2021 09:34:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D1F43953D1D; Thu, 11 Mar 2021 22:33:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D1F43953D1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615502032; bh=ivvxGKsQzCjOKSoXZFDJem8ZCU6S5Stbfd/eUGUXMdE=; 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=s8TtKXeZcPpTtRwX2CrKS9mSmTtyFhURO1RFp0frKcIK6qBilijscqrWfy+2gN0SO HIAa2xs3d3ETMigKPSFOu3H9Nr/69FmT97uX5QskDd837NbYTAcutDrzZZcD0qWj0K q5pOg0SmMahzMClT3lWLhRlE3q/8FM8gMiz6qhhA= 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 E42423893658 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 22:33:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E42423893658 Received: by mail-wr1-x42a.google.com with SMTP id 7so3735347wrz.0 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 14:33:47 -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=ivvxGKsQzCjOKSoXZFDJem8ZCU6S5Stbfd/eUGUXMdE=; b=Ctuc4NnOCTJnPVrwwKKuvUioqf+izWxCJCddKjJqct4wOshGSs8MJkFNmLz0T6Olu/ 7n/OqaD6GJRSD49ig85unDE56yJ1S4tpuwapmM2171A/uYXdwi30rjOUqCMWFb0a9Q9N IFgqHls/o8lXQBz3G0TdLf/EGIimnvk/1NGJyN4RGfUfR2bCb/dmTESYoGJ3oHOtXvVK GI4Wh8+9rPHkBKhvBVG0a1EU4LiSaDfqldYJB+d4vayBAgiAT1ucz6loObBpXFoiVHJ1 5+cJ0KsgVqNu79B/D8o5k43G5CkE0aAQqpnBNhH/GxyqhTn3SDFbWR11MjNwJT0Zz7k9 dsEQ== X-Gm-Message-State: AOAM531CnMa5R5QyaYTZb4Jk2fbRcoi3hDR8LIR9cr/kMrdwQyawViLN okJ7G91+FH/9IGgOxEkx4Uc= X-Google-Smtp-Source: ABdhPJzuwORRtcNidwt8XlS5L7xvAzUDhW+GDn1MI1NIuA3WW16TDdVFSOY9y/6Z8EnwfeePqzisUg== X-Received: by 2002:adf:fecc:: with SMTP id q12mr10776059wrs.317.1615502027085; Thu, 11 Mar 2021 14:33:47 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:46 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 06/17] wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:19 +0100 Message-Id: <20210311223330.722437-7-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210311223330.722437-1-alx.manpages@gmail.com> References: <20210311223330.722437-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
|
expand
|
diff --git a/man3/wcrtomb.3 b/man3/wcrtomb.3 index c63daab8e..475486db1 100644 --- a/man3/wcrtomb.3 +++ b/man3/wcrtomb.3 @@ -20,7 +20,8 @@ wcrtomb \- convert a wide character to a multibyte sequence .nf .B #include <wchar.h> .PP -.BI "size_t wcrtomb(char *" s ", wchar_t " wc ", mbstate_t *" ps ); +.BI "size_t wcrtomb(char *restrict " s ", wchar_t " wc \ +", mbstate_t *restrict " ps ); .fi .SH DESCRIPTION The main case for this function is when
Both POSIX and glibc use 'restrict' in wcrtomb(). Let's use it here too. .../glibc$ grep_glibc_prototype wcrtomb wcsmbs/wchar.h:301: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, mbstate_t *__restrict __ps) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/wcrtomb.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)