Message ID | 20210311223330.722437-5-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=lr5tRs4F; 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 4DxNz42lYrz9sSC for <incoming@patchwork.ozlabs.org>; Fri, 12 Mar 2021 09:34:08 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C995F3953D14; Thu, 11 Mar 2021 22:33:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C995F3953D14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615502030; bh=0gRA80GInmpFHFi7zCWqBqLTKQeLkkGQPvVpOLmqDBQ=; 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=lr5tRs4Ftc96sVNy71nfrQ4G9/FqXadO7hHEBKn8kBy2ZGm3YJZYkzACh07DIoP8L KYn0sawXMi3zWlDSOSAPE24lADwxz68Q9l6zyWgWkEfAxPmIE7Ii8P9hZr1zV0Uq0t l7FRv1FAYPm5GJkaRSXTSb9gj3cpbo3LhyU5MzK0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 574F63952003 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 22:33:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 574F63952003 Received: by mail-wr1-x42f.google.com with SMTP id b18so3714869wrn.6 for <libc-alpha@sourceware.org>; Thu, 11 Mar 2021 14:33:46 -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=0gRA80GInmpFHFi7zCWqBqLTKQeLkkGQPvVpOLmqDBQ=; b=IrsV8/lgJ4DuTeLUUdK5JftxuvZ90DI1b4p+FE/RadZcHjpeXUy59wYpjSWt7/wf+r 5KXEdoBgrNXAHO5xkYy2U70zwwPDgiYyKhG4oJA8tufRPa8/dw7WXfum4HQE3hc+pN0H Va9uQs9hDL2ts7gjN552kHrs0c6E2tWSOMfX1S3XlEgxkZHGTOdj7FuAUJoT+4E7/37q SrBlb+NURMNFHRhIGdIyXek9kbcLwpt4aaORA0SQ9T7dWmw0jOMPTVGoR+dnoWsyLh4o RhHhzDZxGAX7mIBmicMB321yctzwgTHd6Q1t6wUSK+1zZZJWbFrHLlGLCYG6usDhGRLl UNRg== X-Gm-Message-State: AOAM531n5pzNIx7X8d6YZ5mMGZqNhox4OmycP+xWKqVvdNw3ACfLhZnr z1hoXDnqwagO+gNDxeDGPfA= X-Google-Smtp-Source: ABdhPJwCFI0qLQXn9J7w3uepR+5iAMlsynjIJJiVA+ZoPX5PFD6f8ND63fYfaNHSonQw+tSKI7e5PQ== X-Received: by 2002:adf:f512:: with SMTP id q18mr11073225wro.61.1615502025454; Thu, 11 Mar 2021 14:33:45 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:45 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 04/17] wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:17 +0100 Message-Id: <20210311223330.722437-5-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=-11.9 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/wcpcpy.3 b/man3/wcpcpy.3 index 9c30da2d9..5ef063e05 100644 --- a/man3/wcpcpy.3 +++ b/man3/wcpcpy.3 @@ -19,7 +19,8 @@ wcpcpy \- copy a wide-character string, returning a pointer to its end .nf .B #include <wchar.h> .PP -.BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src ); +.BI "wchar_t *wcpcpy(wchar_t *restrict " dest \ +", const wchar_t *restrict " src ); .fi .PP .RS -4
Both POSIX and glibc use 'restrict' in wcpcpy(). Let's use it here too. .../glibc$ grep_glibc_prototype wcpcpy wcsmbs/wchar.h:551: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/wcpcpy.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)