From patchwork Thu Mar 11 22:33:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1451575 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=B4YlLSHd; dkim-atps=neutral Received: from sourceware.org (unknown [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 4DxNzn28K1z9sSC for ; Fri, 12 Mar 2021 09:34:45 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA7DF3953CF8; Thu, 11 Mar 2021 22:33:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA7DF3953CF8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615502037; bh=EvIkShvPl3pktrVcFl7iohI1FVK3iSO1QBc2v9HY+Fg=; 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=B4YlLSHdTIevKn8WCliYHQCjBmhZ9Jekx+RIVo6p/1ssLVx+9xJRF6orNTSVXiA5w +yk20I5cSewmvOZgadK0wjnokCw00imWT8dPKgeSXRwSQ03W/BF1XGw8H5Fjjk41gd jQYnEfT0M30ZA33/ZGGaHMgsBTtv/1ebM4sZsAxU= 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 71F773953075 for ; Thu, 11 Mar 2021 22:33:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71F773953075 Received: by mail-wm1-x32b.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so14058716wmj.1 for ; Thu, 11 Mar 2021 14:33:53 -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=EvIkShvPl3pktrVcFl7iohI1FVK3iSO1QBc2v9HY+Fg=; b=A6yKb2emQ9Og0vOx36x4GXfYA2QzMtDg8vvPqpe29EAR8lktDy5KvrB4wJmEZMgNtX 8yG/S22pe8U4PMZSH96Q9yQrFBQTDJan6bQrS9K7luu0NDGfo4Id3iPMcjsUbstJHC96 ey9ZuidhjqN8qwYGi2Gdo2sl+deCqSTnT+zFJwHJ0MlWXqPYuVAPbiuc0gZyLD/rCp/U Y6oJJkJsszKi4oFF3144HxVUbEtGwx8Qjeb57z1Z8Y8LB66gIPU6hexfhNh85Jofucjp xEZsLp6sqZAntLoBrhv0oHi1o691OAvp7QXRLGrfnDC4acMn5xiAa90Dx0kojUrgxSRg QVvw== X-Gm-Message-State: AOAM5306KIuAV3224rfw0mhSBk4WTo/lWgCKOfDcseFr/JD6d+5Rj6f5 HetuxdCTNwkPi1ULi80KC4s= X-Google-Smtp-Source: ABdhPJz/2zegEbRFOqpd7/4CGCkvMseM+Ll1lZ3ZBMybILocu3RPFWgWcnBHDqmjlCZPBL+dRKeiKg== X-Received: by 2002:a05:600c:4a06:: with SMTP id c6mr10169709wmp.35.1615502032489; Thu, 11 Mar 2021 14:33:52 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:52 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 13/17] wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:26 +0100 Message-Id: <20210311223330.722437-14-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 wcstoimax(), wcstoumax(). Let's use it here too. .../glibc$ grep_glibc_prototype wcstoimax stdlib/inttypes.h:305: extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr, __gwchar_t **__restrict __endptr, int __base) __THROW; .../glibc$ grep_glibc_prototype wcstoumax stdlib/inttypes.h:310: extern uintmax_t wcstoumax (const __gwchar_t *__restrict __nptr, __gwchar_t ** __restrict __endptr, int __base) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/wcstoimax.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man3/wcstoimax.3 b/man3/wcstoimax.3 index fad1f5e36..001897b2b 100644 --- a/man3/wcstoimax.3 +++ b/man3/wcstoimax.3 @@ -29,10 +29,10 @@ wcstoimax, wcstoumax \- convert wide-character string to integer .B #include .B #include .PP -.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \ -", int " base ); -.BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \ -", int " base ); +.BI "intmax_t wcstoimax(const wchar_t *restrict " nptr , +.BI " wchar_t **restrict " endptr ", int " base ); +.BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr , +.BI " wchar_t **restrict " endptr ", int " base ); .fi .SH DESCRIPTION These functions are just like