diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-03-02 14:29:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-03-02 14:29:36 +0000 |
commit | 180044b3867145dbbe8ce421dbeff0df425b74ce (patch) | |
tree | d1b7548f3666d9375a3fcadf8751402e827672fd /newlib/libc/include/rpc | |
parent | 8acb1969b5f891221ca8ed9fafabb49af6cda8eb (diff) | |
download | cygnal-180044b3867145dbbe8ce421dbeff0df425b74ce.tar.gz cygnal-180044b3867145dbbe8ce421dbeff0df425b74ce.tar.bz2 cygnal-180044b3867145dbbe8ce421dbeff0df425b74ce.zip |
* libc/xdr/README: Correct grammatical errors.
* libc/include/rpc/types.h: Add public types used
by RPC implementations.
* libc/include/rpc/xdr.h: Add defines used by RPC
implementations.
* libc/xdr/Makefile.am: Eliminate automake warning.
* libc/xdr/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/include/rpc')
-rw-r--r-- | newlib/libc/include/rpc/types.h | 6 | ||||
-rw-r--r-- | newlib/libc/include/rpc/xdr.h | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/include/rpc/types.h b/newlib/libc/include/rpc/types.h index e75b037f0..7bb8c997b 100644 --- a/newlib/libc/include/rpc/types.h +++ b/newlib/libc/include/rpc/types.h @@ -52,6 +52,12 @@ typedef int64_t quad_t; typedef int32_t bool_t; typedef int32_t enum_t; +typedef u_int32_t rpcprog_t; +typedef u_int32_t rpcvers_t; +typedef u_int32_t rpcproc_t; +typedef u_int32_t rpcprot_t; +typedef u_int32_t rpcport_t; +typedef int32_t rpc_inline_t; #ifndef NULL # define NULL 0 diff --git a/newlib/libc/include/rpc/xdr.h b/newlib/libc/include/rpc/xdr.h index b129321ae..4f93bf38e 100644 --- a/newlib/libc/include/rpc/xdr.h +++ b/newlib/libc/include/rpc/xdr.h @@ -224,6 +224,16 @@ typedef bool_t _EXFNPTR(xdrproc_t, (XDR *, ...)); } while (0) /* + * Solaris strips the '_t' from these types -- not sure why. + * But, let's be compatible. + */ +#define xdr_rpcvers(xdrs, versp) xdr_u_int32(xdrs, versp) +#define xdr_rpcprog(xdrs, progp) xdr_u_int32(xdrs, progp) +#define xdr_rpcproc(xdrs, procp) xdr_u_int32(xdrs, procp) +#define xdr_rpcprot(xdrs, protp) xdr_u_int32(xdrs, protp) +#define xdr_rpcport(xdrs, portp) xdr_u_int32(xdrs, portp) + +/* * Support struct for discriminated unions. * You create an array of xdrdiscrim structures, terminated with * an entry with a null procedure pointer. The xdr_union routine gets |