rpc.3: SYNOPSIS: Fix prototypes (misc.)
PATCH 1/1 rpc.3: SYNOPSIS: Fix prototypes (misc.)
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$
--- man3/rpc.3 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)
man3/rpc.3 +13 -12
@@ -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
Signature · 1 line
2.30.1