Message ID | 20210311223330.722437-8-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=bqH/Bstu; 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 4DxNzF0W87z9sSC for <incoming@patchwork.ozlabs.org>; Fri, 12 Mar 2021 09:34:17 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E05983954424; Thu, 11 Mar 2021 22:33:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E05983954424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615502032; bh=hIPXV5VCEPaPMLD+26mfqastCeKgnkS0cIJ9FjKHlxo=; 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=bqH/BstubMYj2p91rtsoaQu/hsIsW0s9Ejs08KIV3wkfLNUX65yocBjuXHZDWNV1m m8PYnA06HFv0gnm8X+GDYiYh4zHa4uxYn8rTAjq4cy478rQiOOLUlDpCuHjlB8+TZ0 SrM49jog6y5059/X+x2SGVk5DdQTr6YUpEwokLV4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 996F339524B0 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 22:33:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 996F339524B0 Received: by mail-wr1-x436.google.com with SMTP id l12so3725404wry.2 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 14:33:48 -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=hIPXV5VCEPaPMLD+26mfqastCeKgnkS0cIJ9FjKHlxo=; b=lY6VfVVacRW1eqnnnp+ppT5UWT9KzR5aaTg9e1qYmIga7KaJyVtn1LY+lg97iJs/EA PljhPmFkiMuMzwKtzRx1p6B1VYwN/RrxtcbK5oST06kph8BguFLw5UvOV/8XlwlNJOQc iu4+ivojfRmdLyQTtuKFkVwnx4t/SxDPfJKwhBYIiH+9TVuiRc7/ay+fxNELt+aqrlJ/ 63v45sTrUgCuDnQyVq3tuCzTQGkF/gzwF78rEILPLJWe1+fIPZdgu5t0L2uVylhoFhhH uqqZTKd2AlCntsg2b8dPWuW852fneWoBb10oKYRSUVV4fNVReWJ8QeBz969EvMYKVggJ 2ByQ== X-Gm-Message-State: AOAM532rGrjWhlsFdR3E0lGrV7Fgd4SWC9jMHeJBfaGUfevJ30CZDoZ0 p4+BgXEWrZcuBIl+0P+EgKw= X-Google-Smtp-Source: ABdhPJxPxFdmBzyWecT0qlrVzLjuxAjPQyGJhR2LlHzHxzvRDAYpdlxcN/nnVYVhsD0lGGjirkoDhA== X-Received: by 2002:adf:a302:: with SMTP id c2mr10894452wrb.212.1615502027818; Thu, 11 Mar 2021 14:33:47 -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:47 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 07/17] wcscat.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:20 +0100 Message-Id: <20210311223330.722437-8-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.0 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
|
expand
|
diff --git a/man3/wcscat.3 b/man3/wcscat.3 index c756337f1..acfb8d43e 100644 --- a/man3/wcscat.3 +++ b/man3/wcscat.3 @@ -20,7 +20,8 @@ wcscat \- concatenate two wide-character strings .nf .B #include <wchar.h> .PP -.BI "wchar_t *wcscat(wchar_t *" dest ", const wchar_t *" src ); +.BI "wchar_t *wcscat(wchar_t *restrict " dest \ +", const wchar_t *restrict " src ); .fi .SH DESCRIPTION The
Both POSIX and glibc use 'restrict' in wcscat(). Let's use it here too. .../glibc$ grep_glibc_prototype wcscat wcsmbs/wchar.h:97: extern wchar_t *wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/wcscat.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)