From patchwork Thu Mar 11 22:33:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1451574 Return-Path: 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=) 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=N01sV9LE; 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 4DxNzj64tMz9sSC for ; Fri, 12 Mar 2021 09:34:41 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A49D3953075; Thu, 11 Mar 2021 22:33:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A49D3953075 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615502036; bh=myGBFmTyq8yKUO/9bCCE9EWQo9Gph4cL/zgnQG+CavY=; 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=N01sV9LEHNG78CG5xQpLQPAN99Q20Z1ohOMtEdIWst7AaxNmaGxiaKgWyoDNIW/tx MyDR/eqEQyAX64QqfVtwuC64Qudho4viA2bcX+VhBfhNcND5PjHCJTxQQn3AIcqdVy hMufofvls++pmBQW2eMW7+Zs+YRJW8Ow/O7RApBQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 8348339540E3 for ; Thu, 11 Mar 2021 22:33:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8348339540E3 Received: by mail-wm1-x32b.google.com with SMTP id j4-20020a05600c4104b029010c62bc1e20so14070664wmi.3 for ; Thu, 11 Mar 2021 14:33:52 -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=myGBFmTyq8yKUO/9bCCE9EWQo9Gph4cL/zgnQG+CavY=; b=Tp9fq1CUoGCue94bgbWx5RLgIOZz4Xrhp19QzQuBm4yGh2dz/82+9FkYhonQ5lVQQY vQmOdsqGpYVzO4lS2xu6dxBoeg8+VIZkN120GdMv4ceJl1rKUjIOm2a7j/hgidR7+XfW 1MHLvPFRSj+v5W7pUtubuCA3ctgAuPI+OggtWasS5BqUg+ldFvCCYAmGLBSslCBJWyFF NPlc1IWetfThF+P2ADuytYz3NClJ1UsjVn92tPOfhVf46hYjr3Bq3JzcwtMe2/evPG1w GaVyVLnKzY4YjCE97UYdWhfc0K8qjuigmImJTxEgyewYK/JRDhamA8C04yFP/DHFTxh6 Rdpg== X-Gm-Message-State: AOAM530SnKqYXiU5+L0H0e0PeA76Hkg6j35d3IXdTbZEVfBmTe+KV085 qL/io4g/ufxaO108ER/iJgc= X-Google-Smtp-Source: ABdhPJyOlK5Qv/x7vKMNCOqiIwTZej2GPlz+bwVC7FrvJM6+WqoeLpaJFh8uZkfHxd7nIsEjjnLkOQ== X-Received: by 2002:a1c:6a05:: with SMTP id f5mr10053202wmc.75.1615502031708; Thu, 11 Mar 2021 14:33:51 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:51 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 12/17] wcsrtombs.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:25 +0100 Message-Id: <20210311223330.722437-13-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 X-Spam-Status: No, score=-12.3 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Both POSIX and glibc use 'restrict' in wcsrtombs(). Let's use it here too. .../glibc$ grep_glibc_prototype wcsrtombs wcsmbs/wchar.h:343: extern size_t wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/wcsrtombs.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/wcsrtombs.3 b/man3/wcsrtombs.3 index df5518080..b5e9a68ad 100644 --- a/man3/wcsrtombs.3 +++ b/man3/wcsrtombs.3 @@ -20,8 +20,8 @@ wcsrtombs \- convert a wide-character string to a multibyte string .nf .B #include .PP -.BI "size_t wcsrtombs(char *" dest ", const wchar_t **" src , -.BI " size_t " len ", mbstate_t *" ps ); +.BI "size_t wcsrtombs(char *restrict " dest ", const wchar_t **restrict " src , +.BI " size_t " len ", mbstate_t *restrict " ps ); .fi .SH DESCRIPTION If