Ver código fonte

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>
Peter S. Mazinger 13 anos atrás
pai
commit
c6d15bc06b
2 arquivos alterados com 4 adições e 0 exclusões
  1. 2 0
      include/rpc/xdr.h
  2. 2 0
      libc/inet/rpc/xdr_intXX_t.c

+ 2 - 0
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;

+ 2 - 0
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