[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rpc.3 registerrpc() question
src/lib/libc/rpc/rpc.3 shows:
int
registerrpc(u_long prognum, u_long versnum, u_long procnum,
char *(*procname)(), xdrproc_t inproc, xdrproc_t outproc);
and the corresponding description:
registerrpc() will register a procedure procname with the RPC service
package. If a request arrives for program prognum, version versnum, and
procedure procnum, procname is called with a pointer to its parameter(s);
progname should return a pointer to its static result(s); inproc is used
to decode the parameters while outproc is used to encode the results.
This routine returns zero if the registration succeeded, -1 otherwise.
`progname' appears no where else in that document, yet in the code,
the argument is named `progname' and `procname' is not used anywhere.
FreeBSD and NetBSD, at least, are in the same situation. Has this
not been changed for legacy or compliancy reasons, or am I missing
something?
Index: rpc.3
===================================================================
RCS file: /cvs/src/lib/libc/rpc/rpc.3,v
retrieving revision 1.34
diff -u -r1.34 rpc.3
--- rpc.3 2003/12/31 03:27:23 1.34
+++ rpc.3 2004/04/21 05:32:11
@@ -812,7 +812,7 @@
.Fa procnum ,
.Fa procname
is called with a pointer to its parameter(s);
-.Fa progname
+.Fa procname
should return a pointer to its static result(s);
.Fa inproc
is used to decode the parameters while