[git commit] rpc_msg.h: move xdr_accepted_reply and xdr_received_reply from rpc.h

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 15 12:00:21 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=2e55f3df3531a33d84a065979508a809e2bec742
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

glibc does not provide these prototypes
libtirpc provides them in rpc_msg.h, copied comments from there

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/rpc/rpc.h     |    5 -----
 include/rpc/rpc_msg.h |   20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
index abcab9e..d97c831 100644
--- a/include/rpc/rpc.h
+++ b/include/rpc/rpc.h
@@ -109,11 +109,6 @@ extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
 libc_hidden_proto(__rpc_thread_svc_max_pollfd)
 #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
 
-extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar);
-libc_hidden_proto(xdr_accepted_reply)
-extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr);
-libc_hidden_proto(xdr_rejected_reply)
-
 __END_DECLS
 
 #endif /* rpc/rpc.h */
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h
index c848b39..1137dad 100644
--- a/include/rpc/rpc_msg.h
+++ b/include/rpc/rpc_msg.h
@@ -201,6 +201,26 @@ extern void	_seterr_reply (struct rpc_msg *__msg, struct rpc_err *__error)
      __THROW;
 libc_hidden_proto(_seterr_reply)
 
+#ifdef __UCLIBC__
+/*
+ * XDR routine to handle an accepted rpc reply.
+ * xdr_accepted_reply(xdrs, rej)
+ * 	XDR *xdrs;
+ * 	struct accepted_reply *rej;
+ */
+extern bool_t	xdr_accepted_reply(XDR *__xdrs, struct accepted_reply *__ar);
+libc_hidden_proto(xdr_accepted_reply)
+
+/*
+ * XDR routine to handle a rejected rpc reply.
+ * xdr_rejected_reply(xdrs, rej)
+ * 	XDR *xdrs;
+ * 	struct rejected_reply *rej;
+ */
+extern bool_t	xdr_rejected_reply(XDR *__xdrs, struct rejected_reply *__rr);
+libc_hidden_proto(xdr_rejected_reply)
+#endif
+
 __END_DECLS
 
 #endif /* rpc/rpc_msg.h */


More information about the uClibc-cvs mailing list