Message ID | 20210305235105.177359-13-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=lwY1OaR8; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [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 4Dskzy1rjNz9sVt for <incoming@patchwork.ozlabs.org>; Sat, 6 Mar 2021 10:52:14 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C83E399C03A; Fri, 5 Mar 2021 23:51:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C83E399C03A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988289; bh=55/55zPIbRrRBbrzasP7UTaApC67GJ4iUi1V5UoOYPo=; 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=lwY1OaR8DvHETYlAlRoK2DD+8F+WjpTumadFJrJNHc7b1FPEH/4w2kLrHl0jdI7Dm KoBJOHxnejYAAIi4l/hrSdZf0Gq6ogg7y4Q1AqQOkmdY9/fzm0Y9vzYGrLdZgaH2wO LR8Zx414sSLluBvbZMDl27fcdEtKsc44IExBTWXQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 2A47F399C021 for <libc-alpha@sourceware.org>; Fri, 5 Mar 2021 23:51:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2A47F399C021 Received: by mail-wr1-x433.google.com with SMTP id b18so3922757wrn.6 for <libc-alpha@sourceware.org>; Fri, 05 Mar 2021 15:51:26 -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=55/55zPIbRrRBbrzasP7UTaApC67GJ4iUi1V5UoOYPo=; b=WVb/5i2kZ31PXj6UkHmFrp3Yrto51rsjga1Z59qrMJr2pBzShHawjKijMD4Z9l6LwB CvuiOXO5rczA68xZRC9qBaR2CI2uuubkC1vJiyi97dAxhRwNBy6ertd2emYCRCyM7KSW XdtEDKYe0lMSy0DDXSdO3OizL5dBKFL7PGQmPqXPQRGmtYKQDbjEvdWyB6EKWxJwlc9x sqqGhpjNP7UltGIn5V4jgLvAa09rmqbuOwygcm8LDeN4p3jtY/Cyn5iG1gpSWxvamueG NNvMGms+Yz6gbbf/+tuZzAM49QHwOvkY83V/GsyaaPgCeuuBcZPpVEc/baIgR+7u6IjB FYSw== X-Gm-Message-State: AOAM533lQdWoSONg0G7yTb887LWyQPW0yknAVcnimROKwQPfAWXC9gz8 z+unGRTSVY7czTbeMIqP6hU= X-Google-Smtp-Source: ABdhPJwgZpRYLeXAEGGUydYL6EzEDXS/vokNWBhdpQOr9U7Y+FMT+FKKypfIYSdhCxXPzQOonVtNOQ== X-Received: by 2002:adf:e38f:: with SMTP id e15mr11111190wrm.321.1614988285345; Fri, 05 Mar 2021 15:51:25 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:51:25 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 12/22] mbsnrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:50:56 +0100 Message-Id: <20210305235105.177359-13-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/mbsnrtowcs.3 b/man3/mbsnrtowcs.3 index 68b7dc02d..c6428e001 100644 --- a/man3/mbsnrtowcs.3 +++ b/man3/mbsnrtowcs.3 @@ -19,8 +19,9 @@ mbsnrtowcs \- convert a multibyte string to a wide-character string .nf .B #include <wchar.h> .PP -.BI "size_t mbsnrtowcs(wchar_t *" dest ", const char **" src , -.BI " size_t " nms ", size_t " len ", mbstate_t *" ps ); +.BI "size_t mbsnrtowcs(wchar_t *restrict " dest ", const char **restrict " src , +.BI " size_t " nms ", size_t " len \ +", mbstate_t *restrict " ps ); .fi .PP .RS -4
Both POSIX and glibc use 'restrict' in mbsnrtowcs(). Let's use it here too. .../glibc$ grep_glibc_prototype mbsnrtowcs wcsmbs/wchar.h:351: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/mbsnrtowcs.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)