summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-18 21:14:16 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:27 +0200
commitc6d15bc06b8e1bd2cad288d69ec821aa5d1202b5 (patch)
treee4da7adfd3e52485d61d5afaedec14ff0dc68d7f
parent9449f915569e404c30a1f7af9bb06cdc2f9dce1f (diff)
xdr_intXX_t.c,xdr.h: add xdr_quad_t and xdr_u_quad_t
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--include/rpc/xdr.h2
-rw-r--r--libc/inet/rpc/xdr_intXX_t.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 2fbe3e7b9..ec6cd4c7e 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -312,6 +312,8 @@ extern bool_t xdr_int32_t (XDR *__xdrs, int32_t *__ip) __THROW;
extern bool_t xdr_uint32_t (XDR *__xdrs, uint32_t *__up) __THROW;
extern bool_t xdr_int64_t (XDR *__xdrs, int64_t *__ip) __THROW;
extern bool_t xdr_uint64_t (XDR *__xdrs, uint64_t *__up) __THROW;
+extern bool_t xdr_quad_t (XDR *__xdrs, quad_t *__ip) __THROW;
+extern bool_t xdr_u_quad_t (XDR *__xdrs, u_quad_t *__up) __THROW;
extern bool_t xdr_bool (XDR *__xdrs, bool_t *__bp) __THROW;
libc_hidden_proto(xdr_bool)
extern bool_t xdr_enum (XDR *__xdrs, enum_t *__ep) __THROW;
diff --git a/libc/inet/rpc/xdr_intXX_t.c b/libc/inet/rpc/xdr_intXX_t.c
index ff2177584..5e1f18756 100644
--- a/libc/inet/rpc/xdr_intXX_t.c
+++ b/libc/inet/rpc/xdr_intXX_t.c
@@ -47,6 +47,7 @@ xdr_int64_t (XDR *xdrs, int64_t *ip)
return FALSE;
}
}
+strong_alias_untyped(xdr_int64_t,xdr_quad_t)
/* XDR 64bit unsigned integers */
bool_t
@@ -75,6 +76,7 @@ xdr_uint64_t (XDR *xdrs, uint64_t *uip)
return FALSE;
}
}
+strong_alias_untyped(xdr_uint64_t,xdr_u_quad_t)
/* XDR 32bit integers */
bool_t