Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/rpc/types.h6
-rw-r--r--newlib/libc/include/rpc/xdr.h10
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