Message ID | 20210305235105.177359-11-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=JdmQom/E; dkim-atps=neutral Received: from sourceware.org (unknown [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 4Dskzn6YQLz9sVt for <incoming@patchwork.ozlabs.org>; Sat, 6 Mar 2021 10:52:05 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE5EC399C02F; Fri, 5 Mar 2021 23:51:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE5EC399C02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988287; bh=hHn0u2OT8h7IYFzQCH/l5VZgOTcgitnRZP897M9A4CA=; 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=JdmQom/EN+eKX0OvOK528exucV7nVhnIfGZAEm8OSH8iqqOSaiHe/EBK8SZW4Hsoo yKACVmzIZromkjY7iZabLp+iNDdcwiS7FwaMemiqCp/kzFLNTGwPuju8Lc0H430olB Lfp6YeCW1uUnnSbLUEc/5r4ixq/zn5nNzWEW2ZNY= 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 79D43388A81E for <libc-alpha@sourceware.org>; Fri, 5 Mar 2021 23:51:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 79D43388A81E Received: by mail-wm1-x336.google.com with SMTP id n22so2667969wmc.2 for <libc-alpha@sourceware.org>; Fri, 05 Mar 2021 15:51:24 -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=hHn0u2OT8h7IYFzQCH/l5VZgOTcgitnRZP897M9A4CA=; b=VvDNNkCzLF93GLsi6Rg7AFj5rdHYpkkyngcC+I6ZHntYHhhiyHe9o10v3WxYUxxq+8 mLJ4EllwQKiuvrb7vswquoLOoQhxwkdXlJcil1Pph3wgX8ABVU6FtMCioJaMW3KP7aEW 7690JoyNy8wYl0iLYA1a06xPkE4nrCWP/6NEKNOy094TucW0ETyPlsjmkASO7zf9zjIw jI0SZbrkroLIcFr8Kr8fR3RCdC1qpipXGsK71kzuNvcqTrxl8HJNB3TYqwHELYpHqqaB +8Lxs/ZpJb0lbdDRZ6hReKKz5empxXqfE9saxeGgO75ukieUEL3w3i7cZYh2KpBAQeWT nVXQ== X-Gm-Message-State: AOAM531UiX5HKW3MRtQ83FjMJ0iDw/huoo3K5rPcz5LV6fXiVQWZ229D VNudnFlWESvDgfyIriMjjEU= X-Google-Smtp-Source: ABdhPJzZ2GF9IlZDcpvuGN4QJvKb6wiJz3/eDd3eI+3W8l+K/yvdS7ouHsgJYPN892tHYjTFEYhtxQ== X-Received: by 2002:a7b:c119:: with SMTP id w25mr10839051wmi.127.1614988283710; Fri, 05 Mar 2021 15:51:23 -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:23 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 10/22] mbrlen.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:50:54 +0100 Message-Id: <20210305235105.177359-11-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/mbrlen.3 b/man3/mbrlen.3 index 8ef088724..9167eeae5 100644 --- a/man3/mbrlen.3 +++ b/man3/mbrlen.3 @@ -20,7 +20,8 @@ mbrlen \- determine number of bytes in next multibyte character .nf .B #include <wchar.h> .PP -.BI "size_t mbrlen(const char *" s ", size_t " n ", mbstate_t *" ps ); +.BI "size_t mbrlen(const char *restrict " s ", size_t " n , +.BI " mbstate_t *restrict " ps ); .fi .SH DESCRIPTION The
Both POSIX and glibc use 'restrict' in mbrlen(). Let's use it here too. .../glibc$ grep_glibc_prototype mbrlen wcsmbs/wchar.h:307: extern size_t mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/mbrlen.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)