Message ID | 20210305235105.177359-12-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=rjJ3ARoq; 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 4Dskzt31v9z9sVt for <incoming@patchwork.ozlabs.org>; Sat, 6 Mar 2021 10:52:10 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B098399C035; Fri, 5 Mar 2021 23:51:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B098399C035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988288; bh=pEIqZAAZRuOzbuWzODHq3Y3qLFS8eWijrMpzbLrbTDs=; 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=rjJ3ARoqjhxiflaSeVdfC0sS1rWLPBVAzrvVQ4k+tlI9DpOPU/n1+Wu0KMS60q6cW eSW+sSDnQdn9nuIrHczfenfA/R9+UUk1R5iiOG6RImapz3JZ/SmS7CPyOSS59JPHGh Vo/GOz2Ic41I01IsFD/DqLIwWUlYZO79O9s+HIsU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 5BC38384240B for <libc-alpha@sourceware.org>; Fri, 5 Mar 2021 23:51:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5BC38384240B Received: by mail-wr1-x42e.google.com with SMTP id a18so3881855wrc.13 for <libc-alpha@sourceware.org>; Fri, 05 Mar 2021 15:51:25 -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=pEIqZAAZRuOzbuWzODHq3Y3qLFS8eWijrMpzbLrbTDs=; b=mW8Wy0ysnOiFdXgcU2S9zLyCLS4olnBRDftKGRuZYw+Lpo46oIbQCNvuKL7Scd+6PV i08oNGYyIrIe64/XlTNgto45Uu5uEBhSPEEVjl5F3hpohx0uf6Iaiu0Dl0Wd6aeNKUyO lqa6nb/QnLjX/B0WJDRqJCTNncd7TGQ5uvOkA6c7Rv7SkM0N1NHMopNjeeOVKN7Rjg7f 5x6j5aCuWTD3jgbkSBdV+19sdZv/R0wiPcBca7mfOnV6O6UQZzGQZIG+L+CsRaelybns ATB+1DGqVJbdWbaUjZPaxrCSJ9/GUVnT/DkJk6pfrNMhQ9ZV7OFlOC3EFyMf/Du1jURU Kqiw== X-Gm-Message-State: AOAM532rBCaG7m+15Uih+O/aPUoc54c6htvtn4EbBQFiYK4q9vhB4a2L grIm0g4Z4QNz2XXOI7QVYzk5NKdJncjHiQ== X-Google-Smtp-Source: ABdhPJwI+CMmlg1ohgWONgwWBMT5esz9Qrcaake6baukHvyDQABJu1zTsnvzCqSM4jB5DJmWr16Nsw== X-Received: by 2002:a5d:4d01:: with SMTP id z1mr11577493wrt.133.1614988284549; Fri, 05 Mar 2021 15:51:24 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:51:24 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 11/22] mbrtowc.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:50:55 +0100 Message-Id: <20210305235105.177359-12-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210305235105.177359-1-alx.manpages@gmail.com> References: <20210305235105.177359-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 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 3)
|
expand
|
diff --git a/man3/mbrtowc.3 b/man3/mbrtowc.3 index c092b2d63..f3ea9d049 100644 --- a/man3/mbrtowc.3 +++ b/man3/mbrtowc.3 @@ -21,8 +21,9 @@ mbrtowc \- convert a multibyte sequence to a wide character .nf .B #include <wchar.h> .PP -.BI "size_t mbrtowc(wchar_t *" pwc ", const char *" s ", size_t " n \ -", mbstate_t *" ps ); +.BI "size_t mbrtowc(wchar_t *restrict " pwc ", const char *restrict " s \ +", size_t " n , +.BI " mbstate_t *restrict " ps ); .fi .SH DESCRIPTION The main case for this function is when
Both POSIX and glibc use 'restrict' in mbrtowc(). Let's use it here too. .../glibc$ grep_glibc_prototype mbrtowc wcsmbs/wchar.h:296: extern size_t mbrtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n, mbstate_t *__restrict __p) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/mbrtowc.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)