From patchwork Sun Feb 28 00:48:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1445218 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=ak5967aP; 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 4Dp4Xv3ry7z9sRR for ; Sun, 28 Feb 2021 11:49:35 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF9AA3892469; Sun, 28 Feb 2021 00:49:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF9AA3892469 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614473364; bh=IaAt1Agd9M4XX865v3NQMgwHkszrOMBh2uoYAhzIKdU=; 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=ak5967aP8ymzoAWUF5jG63pnm+b4jhK1gyrsihRje93ej0c0O+Krq8twsXZXyG72c eL0GkqohLVB8Gpciv97Qd9cLmligT2GYjJ06ubdHeODet2YoFea+Ss5bIWPhTALkBa 6kM8qzq46l9gW4KucR6NczJ7RJoqobrfzO5UEFPI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id E8D82388C027 for ; Sun, 28 Feb 2021 00:49:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E8D82388C027 Received: by mail-wr1-x429.google.com with SMTP id h98so12254130wrh.11 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=IaAt1Agd9M4XX865v3NQMgwHkszrOMBh2uoYAhzIKdU=; b=Qs82s4EvaEj7iMboXujC+VZLEO7Tmsk1zOR9bBYAeqp3jJ2H56aZjh+pr3dxtPp5C+ MAZssZPHbYY5nwGUU2RwzGIISaOCfIc9TLJ9+hnCTMTYWsZXVLNIy1DjTn+1VZOb48c8 kZHnPB6caMK3NM6sLj7x2DIYpYtpbaOtekvdromjY7v4I7HUZ3IirzIYtoYY6VmVaeb4 DH7uDNrcDyUt3UOdHXa5dSYB6B1JGggHuvWpNHFwkI2Yu6yPcWfIi+UhPJRPsB5BlgSL yXmS8HkKK0m5g02lEnskpTcuoCdcI8Rtpj5PoczlwYDKy6g7ILlq/V3yd/voLqlfy5tX lUoA== X-Gm-Message-State: AOAM532P1yyaGPKDYe5yb2y25WW+D9SP7CT4bpjX4y/vMqo2ZbARFUrb Va0NwAdlMwcH7pc8g3HC0Xk= X-Google-Smtp-Source: ABdhPJydkCAW1qGwJFWgE0WeIHFE1lfXj97IgG0OV6UmOYcT42aQkgrsZoNmjeTK79bOZ/HWMg0Zow== X-Received: by 2002:a5d:6a49:: with SMTP id t9mr3993603wrw.131.1614473360147; Sat, 27 Feb 2021 16:49:20 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id o14sm18212145wri.48.2021.02.27.16.49.19 (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 02/14] getaddrinfo_a.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sun, 28 Feb 2021 01:48:06 +0100 Message-Id: <20210228004817.122463-3-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=-2.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, UNWANTED_LANGUAGE_BODY 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" glibc uses 'restrict' in getaddrinfo_a(). Let's use it here too. .../glibc$ grep_glibc_prototype getaddrinfo_a resolv/netdb.h:690: extern int getaddrinfo_a (int __mode, struct gaicb *__list[__restrict_arr], int __ent, struct sigevent *__restrict __sig); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/getaddrinfo_a.3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man3/getaddrinfo_a.3 b/man3/getaddrinfo_a.3 index 416904437..0ddb8a76d 100644 --- a/man3/getaddrinfo_a.3 +++ b/man3/getaddrinfo_a.3 @@ -36,13 +36,13 @@ network address and service translation .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .PP -.BI "int getaddrinfo_a(int " "mode" ", struct gaicb *" "list[]" , -.BI " int " "nitems" ", struct sigevent *" "sevp" ); -.BI "int gai_suspend(const struct gaicb * const " "list[]" ", int " "nitems" , -.BI " const struct timespec *" "timeout" ); +.BI "int getaddrinfo_a(int " mode ", struct gaicb *" list [restrict], +.BI " int " nitems ", struct sigevent *restrict " sevp ); +.BI "int gai_suspend(const struct gaicb *const " list "[], int " nitems , +.BI " const struct timespec *" timeout ); .PP -.BI "int gai_error(struct gaicb *" "req" ); -.BI "int gai_cancel(struct gaicb *" "req" ); +.BI "int gai_error(struct gaicb *" req ); +.BI "int gai_cancel(struct gaicb *" req ); .PP Link with \fI\-lanl\fP. .fi