diff --git a/man3/rpc.3 b/man3/rpc.3 index 1daaaad7e..3d2fe4243 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