From patchwork Sun Feb 28 00:48:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1445217 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=2620:52:3:1:0:246e:9693:128c; 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=gBs/lYj0; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Dp4Xq3Yrhz9sCD for ; Sun, 28 Feb 2021 11:49:31 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6749C3892452; Sun, 28 Feb 2021 00:49:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6749C3892452 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614473362; bh=BBrj+RCRcLoX4M2VeZRIdCDXBU7W6+peH6JqoHXxaCc=; 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=gBs/lYj0IsN/NevVwK//TKi/hbBhm8BW9uWf60Pb/SL4GtJjvpjWTBVud+0myieNJ 8PyYxKPUzBUGOval/6IZw7N7pGctMNVFrwP4uZTRaabFa0XUohMeWc1S6kc+qnZhBx vwaYipoZY0nIw22DjjzuvBfBBNtpTVBRKmoOVC0o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 41BB7384640C for ; Sun, 28 Feb 2021 00:49:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 41BB7384640C Received: by mail-wr1-x435.google.com with SMTP id 7so12291287wrz.0 for ; Sat, 27 Feb 2021 16:49: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=BBrj+RCRcLoX4M2VeZRIdCDXBU7W6+peH6JqoHXxaCc=; b=fegIWk6WqR1wCchCDbg3clIHgd09PPWb+6jj6bleOCeTYpBb+vSyHBAjkFSgcqWUBf bWpUGky8iCdzHADIP8iuHLJqlWfgku4LPfg99GLSOiyZXO9X+F3O2Jiur8ZnxaWvXfYr HhU1H2yB75OeInOUeEQJEiz5LMjJmeNvK73nJLJEvulJnZe/SEJYeDidcISg3xEyExj5 0jkw+z967pnlpOMrGQo/J45j5iDIQPil+GrxuInDhtnY7ZbGGahgCUCRpQUTgwTuxWFO dCv13yZbKmBVmElLITQvu3DR9cc4r1e3WrlqoqQODDj+FaUh82ky35AL8lJrQizw+nb1 im1g== X-Gm-Message-State: AOAM530S7EuJ/Ml55i7B9qQfdLcM5iqR9ZFW0An+6p0vdFGB3YNmV0ol jAIXQcYW1TSSt7B63OQ/rR8= X-Google-Smtp-Source: ABdhPJySLJJ0kbOLz4vrF1CPBBJ2sm5WaYdrBcYJdAviaFhSZyXRf7THm1rJ0//jFUk5cxRGuR044Q== X-Received: by 2002:a5d:4e50:: with SMTP id r16mr9637247wrt.127.1614473359455; Sat, 27 Feb 2021 16:49:19 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id o14sm18212145wri.48.2021.02.27.16.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 16:49:19 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 01/14] getaddrinfo.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sun, 28 Feb 2021 01:48:05 +0100 Message-Id: <20210228004817.122463-2-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210228004817.122463-1-alx.manpages@gmail.com> References: <20210228004817.122463-1-alx.manpages@gmail.com> MIME-Version: 1.0 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-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 getaddrinfo(). Let's use it here too. .../glibc$ grep_glibc_prototype getaddrinfo; resolv/netdb.h:660: extern int getaddrinfo (const char *__restrict __name, const char *__restrict __service, const struct addrinfo *__restrict __req, struct addrinfo **__restrict __pai); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/getaddrinfo.3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/man3/getaddrinfo.3 b/man3/getaddrinfo.3 index db397bdf8..37710c277 100644 --- a/man3/getaddrinfo.3 +++ b/man3/getaddrinfo.3 @@ -51,13 +51,14 @@ service translation .B #include .B #include .PP -.BI "int getaddrinfo(const char *" "node" ", const char *" "service" , -.BI " const struct addrinfo *" "hints" , -.BI " struct addrinfo **" "res" ); +.BI "int getaddrinfo(const char *restrict " node , +.BI " const char *restrict " service , +.BI " const struct addrinfo *restrict " hints , +.BI " struct addrinfo **restrict " res ); .PP -.BI "void freeaddrinfo(struct addrinfo *" "res" ); +.BI "void freeaddrinfo(struct addrinfo *" res ); .PP -.BI "const char *gai_strerror(int " "errcode" ); +.BI "const char *gai_strerror(int " errcode ); .fi .PP .RS -4