From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 5A6723953075 for ; Thu, 11 Mar 2021 22:33:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5A6723953075 Received: by mail-wr1-x429.google.com with SMTP id y16so3736138wrw.3 for ; Thu, 11 Mar 2021 14:33:49 -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=w8lI9ZL2/2rFyeNzC9uZ91TB7W9B6nwiYozhQGL4dpM=; b=tEIEv9K08b4gYcMsukylDtlIgDm99bdhvsOyBDb2cPOljkxvq8QPcqSuC75lLPS0gD aFk8gB6/yMgHeswqRU2olJVYSDcA+I0Lrtmk+tH3Glwa8O81daPyuQG4MicuOUYpRKaz vVIUMF8XDotgs16edIp+2KK/GbmXn2aXFRsVclLRie+Pt1hCb/cd9pY9y4KmcF+VaeOY 6rJ7QLfd4x0jU4Bx2TW1RM6WctWMKPgTL4CC3ItvbvEY+7AQ1YWLn7wAcMH9uqX4qjLn PdNOX16XJ246SPe6/pqnE3VoyQdLU7GdMpn6/vWlmlzlu1T980/xPldktdaJXd52Q20W xSeg== X-Gm-Message-State: AOAM533P0gEK2mot3O1aPBdClLrEE6prXQErpGhjw1bOCpdW1jHT6TpN hjRRvryrECkQjRH1bzxIhIY= X-Google-Smtp-Source: ABdhPJzLt/0fJRlBMWiKKWCxBix92NM2Ef0KnWNeq4CB/THm3qQH2CptNy2co+vc2d8xawN5tdl19w== X-Received: by 2002:a5d:5906:: with SMTP id v6mr10908843wrd.137.1615502028572; Thu, 11 Mar 2021 14:33:48 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:48 -0800 (PST) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 08/17] wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:21 +0100 Message-Id: <20210311223330.722437-9-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.1 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-List-Received-Date: Thu, 11 Mar 2021 22:33:51 -0000 Both POSIX and glibc use 'restrict' in wcscpy(). Let's use it here too. .../glibc$ grep_glibc_prototype wcscpy wcsmbs/wchar.h:87: extern wchar_t *wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/wcscpy.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/wcscpy.3 b/man3/wcscpy.3 index 8fa4a4e8b..c96711fdf 100644 --- a/man3/wcscpy.3 +++ b/man3/wcscpy.3 @@ -20,7 +20,8 @@ wcscpy \- copy a wide-character string .nf .B #include .PP -.BI "wchar_t *wcscpy(wchar_t *" dest ", const wchar_t *" src ); +.BI "wchar_t *wcscpy(wchar_t *restrict " dest \ +", const wchar_t *restrict " src ); .fi .SH DESCRIPTION The -- 2.30.1