diff options
author | peter <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
commit | bd9931aed2cc704a5fee1601e7e88458290fb6a8 (patch) | |
tree | e54774aa0d272e74f219465c79c216b63e03c952 /include/rpc/rpc.h | |
parent | 7b950e65b2fd7b182f052a13da5c0465fb308334 (diff) | |
download | FreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.zip FreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.tar.gz |
First commit of a series of cleanups for the libc rpc code which has been
suffering a bad case neglect for the last few years.
- Add full prototypes, including to function pointers.
- Make the wire protocols 64-bit type safe, eg: 32 bit quantities are
int32_t, not long. The orginal rpc code was implemented when an int
could be 16 bits.
Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
Diffstat (limited to 'include/rpc/rpc.h')
-rw-r--r-- | include/rpc/rpc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index dbdfc15..63070dd 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -28,7 +28,7 @@ * * from: @(#)rpc.h 1.9 88/02/08 SMI * from: @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC - * $Id: rpc.h,v 1.4 1995/05/30 04:55:23 rgrimes Exp $ + * $Id: rpc.h,v 1.5 1996/01/30 23:32:20 mpp Exp $ */ /* @@ -84,8 +84,12 @@ __BEGIN_DECLS extern struct rpcent *getrpcbyname __P((char *)); extern struct rpcent *getrpcbynumber __P((int)); extern struct rpcent *getrpcent __P((void)); +extern int getrpcport __P((char *host, int prognum, int versnum, int proto)); extern void setrpcent __P((int)); extern void endrpcent __P((void)); + +extern int bindresvport __P((int, struct sockaddr_in *)); +extern int get_myaddress __P((struct sockaddr_in *)); __END_DECLS #endif /* !_RPC_RPC_H */ |