From patchwork Mon Mar 8 18:30:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449325 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=g5ESGvgH; 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 4DvRkk64bYz9sRf for ; Tue, 9 Mar 2021 05:31:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D02C13950423; Mon, 8 Mar 2021 18:31:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D02C13950423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615228299; bh=mkYy8MfEUtI4krazEUR76cWb+UrBKrcyPmHWpTP9bTo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=g5ESGvgHadWv8sy2UPiO4XaCCslPJSAxEIEqCVT2HpRO+mWTSuRjFbr9GHlP2bMsU XNM+5yp1atSdnDz0MI0wmBXA42OHjryZRoIi+evD0rCSG+qVczuvHS6kF+y0A7fpTu z8sPHKkbZufWpH3gFrTqBrn9mCzT8tJsBrWpcz0c= 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 B09433951829 for ; Mon, 8 Mar 2021 18:31:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B09433951829 Received: by mail-wm1-x32b.google.com with SMTP id u187so99297wmg.4 for ; Mon, 08 Mar 2021 10:31:36 -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:mime-version :content-transfer-encoding; bh=mkYy8MfEUtI4krazEUR76cWb+UrBKrcyPmHWpTP9bTo=; b=YEPwYk6EocRnAP+ZuyGK0tIFlrzKnT0a3fEXG3DvHEVtCsLW7W4ngahuGedR+ICYM0 WI06A8CRig9E7NrqWEEgAYjTUZyThLuF5yn13lpwFQFqple7tqnUiRjxNCCWOAgNK5A/ CkyduPL9/Gkc1u9Z8czfLkLTmcihuQU+oxSEiy1T1g1xb6u/PmJkNU0vO3ohc18RiIhG bC5QZ4DMW67BUs+Zx+OkRgCjvxpw94hzyfL1GIc6+JqSLOxioSt8rNLpKknpvGZhBuwr rDWhDiuRAEM/GRViIdjnzpSdUPQvr+HfDx8TxEMNzK10DN8If4cSYHJiWvJLhl/x0sGR FWEA== X-Gm-Message-State: AOAM533YTjHEhBobpqDAyHHq+5JgfU/u0G5iVbKbKrNL39Xe89zLFFiw oS5idrP7QJKh3IpGaw7yHUA= X-Google-Smtp-Source: ABdhPJwtBVGsl5Mi+JhG749JTeTPqtPF4qm1OL4E2K78puXoflsRWuFtimTpE+ynXMkJitGAy0e61w== X-Received: by 2002:a05:600c:2109:: with SMTP id u9mr147194wml.44.1615228295889; Mon, 08 Mar 2021 10:31:35 -0800 (PST) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id u2sm20536336wrp.12.2021.03.08.10.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:31:35 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH] rpc.3: SYNOPSIS: Fix prototypes (misc.) Date: Mon, 8 Mar 2021 19:30:25 +0100 Message-Id: <20210308183024.240858-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 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" Fix the types for the following functions: authunix_create(), callrpc(), clnt_create(), clnt_pcreateerror(), clnt_perror(), clnt_spcreateerror(), clnt_sperror(), pmap_set(), svc_register(), svcerr_progvers(). .../glibc$ grep_glibc_prototype authunix_create sunrpc/rpc/auth.h:158: extern AUTH *authunix_create (char *__machname, __uid_t __uid, __gid_t __gid, int __len, __gid_t *__aup_gids); .../glibc$ grep_glibc_prototype callrpc sunrpc/rpc/clnt.h:359: extern int callrpc (const char *__host, const u_long __prognum, const u_long __versnum, const u_long __procnum, const xdrproc_t __inproc, const char *__in, const xdrproc_t __outproc, char *__out) __THROW; .../glibc$ grep_glibc_prototype clnt_create sunrpc/rpc/clnt.h:291: extern CLIENT *clnt_create (const char *__host, const u_long __prog, const u_long __vers, const char *__prot) __THROW; .../glibc$ grep_glibc_prototype clnt_pcreateerror sunrpc/rpc/clnt.h:368: extern void clnt_pcreateerror (const char *__msg); /* stderr */ .../glibc$ grep_glibc_prototype clnt_perror sunrpc/rpc/clnt.h:379: extern void clnt_perror (CLIENT *__clnt, const char *__msg); .../glibc$ grep_glibc_prototype clnt_spcreateerror sunrpc/rpc/clnt.h:369: extern char *clnt_spcreateerror(const char *__msg) __THROW; /* string */ .../glibc$ grep_glibc_prototype clnt_sperror sunrpc/rpc/clnt.h:381: extern char *clnt_sperror (CLIENT *__clnt, const char *__msg) __THROW; .../glibc$ grep_glibc_prototype pmap_set sunrpc/rpc/pmap_clnt.h:69: extern bool_t pmap_set (const u_long __program, const u_long __vers, int __protocol, u_short __port) __THROW; .../glibc$ grep_glibc_prototype svc_register sunrpc/rpc/svc.h:188: extern bool_t svc_register (SVCXPRT *__xprt, rpcprog_t __prog, rpcvers_t __vers, __dispatch_fn_t __dispatch, rpcprot_t __protocol) __THROW; .../glibc$ grep_glibc_prototype svcerr_progvers sunrpc/rpc/svc.h:253: extern void svcerr_progvers (SVCXPRT *__xprt, rpcvers_t __low_vers, rpcvers_t __high_vers) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/rpc.3 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/man3/rpc.3 b/man3/rpc.3 index 864994853..7823705a4 100644 --- a/man3/rpc.3 +++ b/man3/rpc.3 @@ -70,8 +70,8 @@ information with each remote procedure call. This is the default authentication used by RPC. .PP .nf -.BI "AUTH *authunix_create(char *" host ", int " uid ", int " gid , -.BI " int " len ", int *" aup_gids ); +.BI "AUTH *authunix_create(char *" host ", uid_t " uid ", gid_t " gid , +.BI " int " len ", gid_t *" aup_gids ); .fi .IP Create and return an RPC authentication handle that contains @@ -100,7 +100,7 @@ with the appropriate parameters. .nf .BI "int callrpc(char *" host ", unsigned long " prognum , .BI " unsigned long " versnum ", unsigned long " procnum , -.BI " xdrproc_t " inproc ", char *" in , +.BI " xdrproc_t " inproc ", const char *" in , .BI " xdrproc_t " outproc ", char *" out ); .fi .IP @@ -216,8 +216,8 @@ If the RPC library opened the associated socket, it will close it also. Otherwise, the socket remains open. .PP .nf -.BI "CLIENT *clnt_create(char *" host ", unsigned long " prog , -.BI " unsigned long " vers ", char *" proto ); +.BI "CLIENT *clnt_create(const char *" host ", unsigned long " prog , +.BI " unsigned long " vers ", const char *" proto ); .fi .IP Generic client creation routine. @@ -305,7 +305,7 @@ handle to the structure at address .IR errp . .PP .nf -.BI "void clnt_pcreateerror(char *" s ); +.BI "void clnt_pcreateerror(const char *" s ); .fi .IP Print a message to standard error indicating why a client RPC @@ -332,7 +332,7 @@ Used after .BR callrpc (). .PP .nf -.BI "clnt_perror(CLIENT *" clnt ", char *" s ); +.BI "clnt_perror(CLIENT *" clnt ", const char *" s ); .fi .IP Print a message to standard error indicating why an RPC call failed; @@ -345,7 +345,7 @@ Used after .BR clnt_call (). .PP .nf -.BI "char *clnt_spcreateerror(char *" s ); +.BI "char *clnt_spcreateerror(const char *" s ); .fi .IP Like @@ -383,7 +383,7 @@ returns pointer to static data, but the result will not get overwritten on each call. .PP .nf -.BI "char *clnt_sperror(CLIENT *" rpch ", char *" s ); +.BI "char *clnt_sperror(CLIENT *" rpch ", const char *" s ); .fi .IP Like @@ -601,7 +601,7 @@ See also .PP .nf .BI "bool_t pmap_set(unsigned long " prognum ", unsigned long " versnum , -.BI " unsigned int " protocol ", unsigned short " port ); +.BI " int " protocol ", unsigned short " port ); .fi .IP A user interface to the @@ -781,7 +781,7 @@ This interface is obsoleted by .nf .BI "bool_t svc_register(SVCXPRT *" xprt ", unsigned long " prognum , .BI " unsigned long " versnum , -.BI " void (*" dispatch ")(svc_req *, SVCXPRT *)," +.BI " void (*" dispatch ")(struct svc_req *, SVCXPRT *)," .BI " unsigned long " protocol ); .fi .IP @@ -894,7 +894,8 @@ Called when the desired program is not registered with the RPC package. Service implementors usually do not need this routine. .PP .nf -.BI "void svcerr_progvers(SVCXPRT *" xprt ); +.BI "void svcerr_progvers(SVCXPRT *" xprt ", unsigned long " low_vers , +.BI " unsigned long " high_vers ); .fi .IP Called when the desired version of a program is not registered