From patchwork Mon Mar 8 18:53:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449354 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=ciTuF+kp; 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 4DvSGK2fvFz9sW1 for ; Tue, 9 Mar 2021 05:55:37 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D39D3955424; Mon, 8 Mar 2021 18:54:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D39D3955424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229672; bh=JK1L4fs3CpRZqb4LY3fOvl3jG2qj2bqXz24p1ImaaMY=; 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=ciTuF+kp/AFtThIh+psDCBZEOWCEnRsojuTD/kgZkarNPGO0j1mtCcwzugxq0Z3P0 +NIZnY18iTPJIhnZjU4hQRaKWn1sHqlsWOcUEonRTNHeN2wliJ9YBV7eZZI17ngGmx pQF+g5e6+GN1sjSOdKIlK2O5zrqpzMhxsz79gnZw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 1253639518B1 for ; Mon, 8 Mar 2021 18:54:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1253639518B1 Received: by mail-wr1-x432.google.com with SMTP id u14so12611011wri.3 for ; Mon, 08 Mar 2021 10:54:30 -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=JK1L4fs3CpRZqb4LY3fOvl3jG2qj2bqXz24p1ImaaMY=; b=AB2qKtlolgC2NOzV+sc8mx4gzXzJLjf+w7bcjw1d6u7IbkSI9QHq8gFE7WjBHNGD1B xhdWhrPLcrRcn8wmzwTgyKHTxypg8QSLmK0ECmDRqr2Oyf9Zx0eTLokdfTy3P4E1KDQN y3aXrhCopdeSZuF9okMISIoHqD/UfMjXo8awEVUCqCf3zmVbKC1/JKHVtTsSEd13trZb EVW0Q5PyMsYbAA9YTObArOgQ2rYcE2St1TohPXyKsifw/tR4JMvuACdCFFLMUaKxbyqY XJ9mhBN/OCCHsEUQRG3EmmMVUpZzybtMGeJkRhpGnxI9JoESVr3Cs6eBxwYmfwa7aKoX meUA== X-Gm-Message-State: AOAM531+XP1aOA/6YzWqBcsV2b2zG3HZ8CdAXV0qlaj0Sbf2vUQ4ttOS dmpm1i5+zyJNbL5/uD/BXfk= X-Google-Smtp-Source: ABdhPJzbEBs3hc4lQpMbZwODtOwZ2XFf22V10cSHmKNvDdHQptvjS/d/Vw3LQjpBCJ3rGZjXM5F+Eg== X-Received: by 2002:a5d:6b0a:: with SMTP id v10mr24150606wrw.183.1615229669238; Mon, 08 Mar 2021 10:54:29 -0800 (PST) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id i11sm19889921wro.53.2021.03.08.10.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:28 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 21/23] rexec.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:30 +0100 Message-Id: <20210308185331.242176-22-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308185331.242176-1-alx.manpages@gmail.com> References: <20210308185331.242176-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" glibc uses 'restrict' in rexec(), rexec_af(). Let's use it here too. .../glibc$ grep_glibc_prototype rexec resolv/netdb.h:477: extern int rexec (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p); .../glibc$ grep_glibc_prototype rexec_af resolv/netdb.h:489: extern int rexec_af (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/rexec.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man3/rexec.3 b/man3/rexec.3 index 6c46e0e34..56d1a2442 100644 --- a/man3/rexec.3 +++ b/man3/rexec.3 @@ -45,10 +45,12 @@ rexec, rexec_af \- return stream to a remote command .nf .B #include .PP -.BI "int rexec(char **" ahost ", int " inport ", const char *" user , -.BI " const char *" passwd ", const char *" cmd ", int *" fd2p ); -.BI "int rexec_af(char **" ahost ", int " inport ", const char *" user , -.BI " const char *" passwd ", const char *" cmd ", int *" fd2p , +.BI "int rexec(char **restrict " ahost ", int " inport , +.BI " const char *restrict " user ", const char *restrict " passwd , +.BI " const char *restrict " cmd ", int *restrict " fd2p ); +.BI "int rexec_af(char **restrict " ahost ", int " inport , +.BI " const char *restrict " user ", const char *restrict " passwd , +.BI " const char *restrict " cmd ", int *restrict " fd2p , .BI " sa_family_t " af ); .fi .PP