|
@@ -99,6 +99,7 @@ xdr_void (void)
|
|
|
* The definition of xdr_long() is kept for backward
|
|
|
* compatibility. Instead xdr_int() should be used.
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_long)
|
|
|
bool_t
|
|
|
xdr_long (XDR *xdrs, long *lp)
|
|
|
{
|
|
@@ -116,12 +117,12 @@ xdr_long (XDR *xdrs, long *lp)
|
|
|
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_long)
|
|
|
libc_hidden_def(xdr_long)
|
|
|
|
|
|
|
|
|
* XDR short integers
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_short)
|
|
|
bool_t
|
|
|
xdr_short (XDR *xdrs, short *sp)
|
|
|
{
|
|
@@ -146,12 +147,12 @@ xdr_short (XDR *xdrs, short *sp)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_short)
|
|
|
libc_hidden_def(xdr_short)
|
|
|
|
|
|
|
|
|
* XDR integers
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_int)
|
|
|
bool_t
|
|
|
xdr_int (XDR *xdrs, int *ip)
|
|
|
{
|
|
@@ -183,7 +184,6 @@ xdr_int (XDR *xdrs, int *ip)
|
|
|
#error unexpected integer sizes in xdr_int()
|
|
|
#endif
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_int)
|
|
|
libc_hidden_def(xdr_int)
|
|
|
|
|
|
|
|
@@ -191,6 +191,7 @@ libc_hidden_def(xdr_int)
|
|
|
* The definition of xdr_u_long() is kept for backward
|
|
|
* compatibility. Instead xdr_u_int() should be used.
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_u_long)
|
|
|
bool_t
|
|
|
xdr_u_long (XDR *xdrs, u_long *ulp)
|
|
|
{
|
|
@@ -219,12 +220,12 @@ xdr_u_long (XDR *xdrs, u_long *ulp)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_u_long)
|
|
|
libc_hidden_def(xdr_u_long)
|
|
|
|
|
|
|
|
|
* XDR unsigned integers
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_u_int)
|
|
|
bool_t
|
|
|
xdr_u_int (XDR *xdrs, u_int *up)
|
|
|
{
|
|
@@ -255,13 +256,13 @@ xdr_u_int (XDR *xdrs, u_int *up)
|
|
|
#error unexpected integer sizes in xdr_u_int()
|
|
|
#endif
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_u_int)
|
|
|
libc_hidden_def(xdr_u_int)
|
|
|
|
|
|
|
|
|
* XDR hyper integers
|
|
|
* same as xdr_u_hyper - open coded to save a proc call!
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_hyper)
|
|
|
bool_t
|
|
|
xdr_hyper (XDR *xdrs, quad_t *llp)
|
|
|
{
|
|
@@ -289,7 +290,6 @@ xdr_hyper (XDR *xdrs, quad_t *llp)
|
|
|
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_hyper)
|
|
|
libc_hidden_def(xdr_hyper)
|
|
|
|
|
|
|
|
@@ -297,6 +297,7 @@ libc_hidden_def(xdr_hyper)
|
|
|
* XDR hyper integers
|
|
|
* same as xdr_hyper - open coded to save a proc call!
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_u_hyper)
|
|
|
bool_t
|
|
|
xdr_u_hyper (XDR *xdrs, u_quad_t *ullp)
|
|
|
{
|
|
@@ -324,7 +325,6 @@ xdr_u_hyper (XDR *xdrs, u_quad_t *ullp)
|
|
|
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_u_hyper)
|
|
|
libc_hidden_def(xdr_u_hyper)
|
|
|
|
|
|
bool_t
|
|
@@ -405,6 +405,7 @@ xdr_u_char (XDR *xdrs, u_char *cp)
|
|
|
|
|
|
* XDR booleans
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_bool)
|
|
|
bool_t
|
|
|
xdr_bool (XDR *xdrs, bool_t *bp)
|
|
|
{
|
|
@@ -429,12 +430,12 @@ xdr_bool (XDR *xdrs, bool_t *bp)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_bool)
|
|
|
libc_hidden_def(xdr_bool)
|
|
|
|
|
|
|
|
|
* XDR enumerations
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_enum)
|
|
|
bool_t
|
|
|
xdr_enum (XDR *xdrs, enum_t *ep)
|
|
|
{
|
|
@@ -481,7 +482,6 @@ xdr_enum (XDR *xdrs, enum_t *ep)
|
|
|
return FALSE;
|
|
|
}
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_enum)
|
|
|
libc_hidden_def(xdr_enum)
|
|
|
|
|
|
|
|
@@ -489,6 +489,7 @@ libc_hidden_def(xdr_enum)
|
|
|
* Allows the specification of a fixed size sequence of opaque bytes.
|
|
|
* cp points to the opaque object and cnt gives the byte length.
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_opaque)
|
|
|
bool_t
|
|
|
xdr_opaque (XDR *xdrs, caddr_t cp, u_int cnt)
|
|
|
{
|
|
@@ -533,7 +534,6 @@ xdr_opaque (XDR *xdrs, caddr_t cp, u_int cnt)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_opaque)
|
|
|
libc_hidden_def(xdr_opaque)
|
|
|
|
|
|
|
|
@@ -541,6 +541,7 @@ libc_hidden_def(xdr_opaque)
|
|
|
* *cpp is a pointer to the bytes, *sizep is the count.
|
|
|
* If *cpp is NULL maxsize bytes are allocated
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_bytes)
|
|
|
bool_t
|
|
|
xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
|
|
|
{
|
|
@@ -599,7 +600,6 @@ xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_bytes)
|
|
|
libc_hidden_def(xdr_bytes)
|
|
|
|
|
|
|
|
@@ -625,6 +625,7 @@ xdr_netobj (xdrs, np)
|
|
|
* routine may be called.
|
|
|
* If there is no specific or default routine an error is returned.
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_union)
|
|
|
bool_t
|
|
|
xdr_union (XDR *xdrs, enum_t *dscmp, char *unp, const struct xdr_discrim *choices, xdrproc_t dfault)
|
|
|
{
|
|
@@ -655,7 +656,6 @@ xdr_union (XDR *xdrs, enum_t *dscmp, char *unp, const struct xdr_discrim *choice
|
|
|
return ((dfault == NULL_xdrproc_t) ? FALSE :
|
|
|
(*dfault) (xdrs, unp, LASTUNSIGNED));
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_union)
|
|
|
libc_hidden_def(xdr_union)
|
|
|
|
|
|
|
|
@@ -672,6 +672,7 @@ libc_hidden_def(xdr_union)
|
|
|
* storage is allocated. The last parameter is the max allowed length
|
|
|
* of the string as specified by a protocol.
|
|
|
*/
|
|
|
+libc_hidden_proto(xdr_string)
|
|
|
bool_t
|
|
|
xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
|
|
|
{
|
|
@@ -744,7 +745,6 @@ xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-libc_hidden_proto(xdr_string)
|
|
|
libc_hidden_def(xdr_string)
|
|
|
|
|
|
|