Message ID | 20210305235105.177359-7-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=OVar9Zwg; 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 4DskzS00mtz9sVt for <incoming@patchwork.ozlabs.org>; Sat, 6 Mar 2021 10:51:47 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C051382D43C; Fri, 5 Mar 2021 23:51:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C051382D43C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988284; bh=xUyRNl6Q2Rj6Vo2rrRfIywC7BhDfUeXrnktUg4SMgcY=; 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=OVar9ZwgfTZJfVCl76R8qNYbV33/Ngxt/YirrI2xSislG0FzN2nusn9cPumORyscF luiuANuuXG4nKqKsklQ3KFGOxfx23+bF2sARmVvoy7bWzpNooMgZv5kZJ8pj3BcLVy V4FTJ1gpsqfp8cBgXH8OxaeLV4Ms6kBOve8HZLZI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 69BFF3834428 for <libc-alpha@sourceware.org>; Fri, 5 Mar 2021 23:51:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 69BFF3834428 Received: by mail-wm1-x336.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so254175wml.2 for <libc-alpha@sourceware.org>; Fri, 05 Mar 2021 15:51:20 -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=xUyRNl6Q2Rj6Vo2rrRfIywC7BhDfUeXrnktUg4SMgcY=; b=BwLsUq4Bnc7iUs/0VLGaFGSohbMp5dT1SIUsBBQsGi50Y/3+iSHonYxgVz19L9hot1 F8MbRIEfxNkHgWv+0em0K+fPRxCaq7t+7vsUeLPbNXyBNL8+PuFF1snumwJ50h4dx8Zi Wf4nrT/dJH48o/Qt31n0hz8Ot3uPVyy02mvrZXbbF5ivunVGpH/2cNhMYXQSOppUE/mF XEXv2XvCHnfuAyu4HnzOYTiNNDVH5ytIjGRJfSkiXnOJsTQz+L17E41k0D6Z091p9UEp 7GwZLHoYixP+Av+z970MsaK984epLjleP2MAPT0AfFlbepTwEq2Dzhm3Iuct+WFUfy3b KEwQ== X-Gm-Message-State: AOAM532YJhV6pR2+V2vBEIhEMZ6tNUbV3D18S/XJKfz/JDVMuYmkFC+y kOhH6D+6fzQlbZ32sNxpQWUhhFfHF62pXw== X-Google-Smtp-Source: ABdhPJzrp0AY5rNtq0mQtC5ofLN7z8IJU5OldNn48jNefd4onRkUKXQWXtaNqkDV68ls2NF23WqdGw== X-Received: by 2002:a05:600c:2cd8:: with SMTP id l24mr4920015wmc.88.1614988279590; Fri, 05 Mar 2021 15:51:19 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:51:19 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 06/22] inet_pton.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:50:50 +0100 Message-Id: <20210305235105.177359-7-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210305235105.177359-1-alx.manpages@gmail.com> References: <20210305235105.177359-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 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 (batch 3)
|
expand
|
diff --git a/man3/inet_pton.3 b/man3/inet_pton.3 index 304aafb1e..f367fc6d2 100644 --- a/man3/inet_pton.3 +++ b/man3/inet_pton.3 @@ -31,7 +31,8 @@ inet_pton \- convert IPv4 and IPv6 addresses from text to binary form .nf .B #include <arpa/inet.h> .PP -.BI "int inet_pton(int " "af" ", const char *" "src" ", void *" "dst" ); +.BI "int inet_pton(int " af ", const char *restrict " src \ +", void *restrict " dst ); .fi .SH DESCRIPTION This function converts the character string
Both POSIX and glibc use 'restrict' in inet_pton(). Let's use it here too. .../glibc$ grep_glibc_prototype inet_pton inet/arpa/inet.h:58: extern int inet_pton (int __af, const char *__restrict __cp, void *__restrict __buf) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/inet_pton.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)