|
@@ -53,11 +53,8 @@ static char sccsid[] = "@(#)xdr.c 1.35 87/08/12";
|
|
|
|
|
|
#ifdef USE_IN_LIBIO
|
|
|
# include <wchar.h>
|
|
|
-
|
|
|
#endif
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
* constants specific to the xdr "protocol"
|
|
@@ -87,7 +84,6 @@ xdr_free (xdrproc_t proc, char *objp)
|
|
|
|
|
|
* XDR nothing
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_void (void)
|
|
|
{
|
|
@@ -100,7 +96,6 @@ libc_hidden_def(xdr_void)
|
|
|
* The definition of xdr_long() is kept for backward
|
|
|
* compatibility. Instead xdr_int() should be used.
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_long (XDR *xdrs, long *lp)
|
|
|
{
|
|
@@ -122,7 +117,6 @@ libc_hidden_def(xdr_long)
|
|
|
|
|
|
* XDR short integers
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_short (XDR *xdrs, short *sp)
|
|
|
{
|
|
@@ -152,7 +146,6 @@ libc_hidden_def(xdr_short)
|
|
|
|
|
|
* XDR integers
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_int (XDR *xdrs, int *ip)
|
|
|
{
|
|
@@ -191,7 +184,6 @@ libc_hidden_def(xdr_int)
|
|
|
* The definition of xdr_u_long() is kept for backward
|
|
|
* compatibility. Instead xdr_u_int() should be used.
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_u_long (XDR *xdrs, u_long *ulp)
|
|
|
{
|
|
@@ -225,7 +217,6 @@ libc_hidden_def(xdr_u_long)
|
|
|
|
|
|
* XDR unsigned integers
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_u_int (XDR *xdrs, u_int *up)
|
|
|
{
|
|
@@ -262,7 +253,6 @@ libc_hidden_def(xdr_u_int)
|
|
|
* XDR hyper integers
|
|
|
* same as xdr_u_hyper - open coded to save a proc call!
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_hyper (XDR *xdrs, quad_t *llp)
|
|
|
{
|
|
@@ -298,7 +288,6 @@ libc_hidden_def(xdr_hyper)
|
|
|
* XDR hyper integers
|
|
|
* same as xdr_hyper - open coded to save a proc call!
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_u_hyper (XDR *xdrs, u_quad_t *ullp)
|
|
|
{
|
|
@@ -343,7 +332,6 @@ xdr_u_longlong_t (XDR *xdrs, u_quad_t *ullp)
|
|
|
|
|
|
* XDR unsigned short integers
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_u_short (XDR *xdrs, u_short *usp)
|
|
|
{
|
|
@@ -408,7 +396,6 @@ xdr_u_char (XDR *xdrs, u_char *cp)
|
|
|
|
|
|
* XDR booleans
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_bool (XDR *xdrs, bool_t *bp)
|
|
|
{
|
|
@@ -438,7 +425,6 @@ libc_hidden_def(xdr_bool)
|
|
|
|
|
|
* XDR enumerations
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_enum (XDR *xdrs, enum_t *ep)
|
|
|
{
|
|
@@ -492,7 +478,6 @@ 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.
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_opaque (XDR *xdrs, caddr_t cp, u_int cnt)
|
|
|
{
|
|
@@ -544,7 +529,6 @@ libc_hidden_def(xdr_opaque)
|
|
|
* *cpp is a pointer to the bytes, *sizep is the count.
|
|
|
* If *cpp is NULL maxsize bytes are allocated
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
|
|
|
{
|
|
@@ -628,7 +612,6 @@ xdr_netobj (xdrs, np)
|
|
|
* routine may be called.
|
|
|
* If there is no specific or default routine an error is returned.
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_union (XDR *xdrs, enum_t *dscmp, char *unp, const struct xdr_discrim *choices, xdrproc_t dfault)
|
|
|
{
|
|
@@ -675,7 +658,6 @@ libc_hidden_def(xdr_union)
|
|
|
* storage is allocated. The last parameter is the max allowed length
|
|
|
* of the string as specified by a protocol.
|
|
|
*/
|
|
|
-
|
|
|
bool_t
|
|
|
xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
|
|
|
{
|