man-pages/man3/xdr.3

843 lines
14 KiB
Groff
Raw Normal View History

.\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
.\"
2004-11-03 13:51:07 +00:00
.\" @(#)xdr.3n 2.2 88/08/03 4.0 RPCSRC; from 1.16 88/03/14 SMI
2007-12-23 08:15:30 +00:00
.\" FIXME -- change this page to use modern C prototypes
.TH XDR 3 2007-05-18 "" "Linux Programmer's Manual"
2004-11-03 13:51:07 +00:00
.SH NAME
xdr \- library routines for external data representation
.SH "SYNOPSIS AND DESCRIPTION"
.LP
These routines allow C programmers to describe
arbitrary data structures in a machine-independent fashion.
Data for remote procedure calls are transmitted using these
routines.
.LP
.ft B
.nf
.sp .5
xdr_array(xdrs, arrp, sizep, maxsize, elsize, elproc)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char **arrp;
unsigned int *sizep, maxsize, elsize;
2004-11-03 13:51:07 +00:00
xdrproc_t elproc;
.fi
.ft R
.IP
A filter primitive that translates between variable-length
arrays
and their corresponding external representations.
The parameter
2004-11-03 13:51:07 +00:00
.I arrp
is the address of the pointer to the array, while
.I sizep
is the address of the element count of the array;
this element count cannot exceed
.IR maxsize .
The parameter
.I elsize
is the
.I sizeof
each of the array's elements, and
.I elproc
is an
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
filter that translates between
the array elements' C form, and their external
representation.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
xdr_bool(xdrs, bp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
bool_t *bp;
.fi
.ft R
.IP
A filter primitive that translates between booleans (C
integers)
and their external representations.
When encoding data, this
2004-11-03 13:51:07 +00:00
filter produces values of either one or zero.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
xdr_bytes(xdrs, sp, sizep, maxsize)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char **sp;
unsigned int *sizep, maxsize;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A filter primitive that translates between counted byte
strings and their external representations.
The parameter
.I sp
is the address of the string pointer.
The length of the
2004-11-03 13:51:07 +00:00
string is located at address
.IR sizep ;
strings cannot be longer than
.IR maxsize .
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_char(xdrs, cp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char *cp;
.fi
.ft R
.IP
A filter primitive that translates between C characters
and their external representations.
This routine returns one if it succeeds, zero otherwise.
Note: encoded characters are not packed, and occupy 4 bytes each.
For arrays of characters, it is worthwhile to
2004-11-03 13:51:07 +00:00
consider
.BR xdr_bytes (),
.BR xdr_opaque ()
2004-11-03 13:51:07 +00:00
or
.BR xdr_string ().
2004-11-03 13:51:07 +00:00
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
void
xdr_destroy(xdrs)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A macro that invokes the destroy routine associated with the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream,
.IR xdrs .
Destruction usually involves freeing private data structures
associated with the stream.
Using
2004-11-03 13:51:07 +00:00
.I xdrs
after invoking
.BR xdr_destroy ()
2004-11-03 13:51:07 +00:00
is undefined.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_double(xdrs, dp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
double *dp;
.fi
.ft R
.IP
A filter primitive that translates between C
2006-02-09 20:24:53 +00:00
.I double
2004-11-03 13:51:07 +00:00
precision numbers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_enum(xdrs, ep)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
enum_t *ep;
.fi
.ft R
.IP
A filter primitive that translates between C
2007-06-23 07:56:56 +00:00
.IR enum s
2004-11-03 13:51:07 +00:00
(actually integers) and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
xdr_float(xdrs, fp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
float *fp;
.fi
.ft R
.IP
A filter primitive that translates between C
2007-06-23 07:56:56 +00:00
.IR float s
2004-11-03 13:51:07 +00:00
and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 9
.LP
.ft B
.nf
.sp .5
void
xdr_free(proc, objp)
xdrproc_t proc;
char *objp;
.fi
.ft R
.IP
Generic freeing routine.
The first argument is the
2007-12-24 16:10:29 +00:00
XDR
routine for the object being freed.
The second argument
is a pointer to the object itself.
Note: the pointer passed
2004-11-03 13:51:07 +00:00
to this routine is
.I not
freed, but what it points to
.I is
freed (recursively).
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
unsigned int
2004-11-03 13:51:07 +00:00
xdr_getpos(xdrs)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A macro that invokes the get-position routine
associated with the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream,
.IR xdrs .
The routine returns an unsigned integer,
which indicates the position of the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
byte stream.
A desirable feature of
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
streams is that simple arithmetic works with this number,
although the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream instances need not guarantee this.
.br
.if t .ne 4
.LP
.ft B
.nf
.sp .5
.br
long *
xdr_inline(xdrs, len)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
int len;
.fi
.ft R
.IP
A macro that invokes the in-line routine associated with the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream,
.IR xdrs .
The routine returns a pointer
to a contiguous piece of the stream's buffer;
.I len
is the byte length of the desired buffer.
Note: pointer is cast to
2006-02-09 20:24:53 +00:00
.IR "long *" .
2004-11-03 13:51:07 +00:00
.IP
Warning:
.BR xdr_inline ()
2004-11-03 13:51:07 +00:00
may return
2007-12-24 16:10:29 +00:00
NULL
2004-11-03 13:51:07 +00:00
(0)
if it cannot allocate a contiguous piece of a buffer.
Therefore the behavior may vary among stream instances;
it exists for the sake of efficiency.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_int(xdrs, ip)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
int *ip;
.fi
.ft R
.IP
A filter primitive that translates between C integers
and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_long(xdrs, lp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
long *lp;
.fi
.ft R
.IP
A filter primitive that translates between C
2006-02-09 20:24:53 +00:00
.I long
2004-11-03 13:51:07 +00:00
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 12
.LP
.ft B
.nf
.sp .5
void
xdrmem_create(xdrs, addr, size, op)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char *addr;
unsigned int size;
2004-11-03 13:51:07 +00:00
enum xdr_op op;
.fi
.ft R
.IP
This routine initializes the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream object pointed to by
.IR xdrs .
The stream's data is written to, or read from,
a chunk of memory at location
.I addr
whose length is no more than
.I size
bytes long.
The
2004-11-03 13:51:07 +00:00
.I op
determines the direction of the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream
(either
2007-12-16 15:39:37 +00:00
.BR XDR_ENCODE ,
.BR XDR_DECODE ,
2004-11-03 13:51:07 +00:00
or
2007-12-16 15:39:37 +00:00
.BR XDR_FREE ).
2004-11-03 13:51:07 +00:00
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
xdr_opaque(xdrs, cp, cnt)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char *cp;
unsigned int cnt;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A filter primitive that translates between fixed size opaque data
and its external representation.
The parameter
.I cp
is the address of the opaque object, and
.I cnt
is its size in bytes.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
xdr_pointer(xdrs, objpp, objsize, xdrobj)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char **objpp;
unsigned int objsize;
2004-11-03 13:51:07 +00:00
xdrproc_t xdrobj;
.fi
.ft R
.IP
Like
.BR xdr_reference ()
2004-11-03 13:51:07 +00:00
except that it serializes
2007-12-24 16:10:29 +00:00
NULL
2004-11-03 13:51:07 +00:00
pointers, whereas
.BR xdr_reference ()
does not.
Thus,
.BR xdr_pointer ()
2004-11-03 13:51:07 +00:00
can represent
recursive data structures, such as binary trees or
linked lists.
.br
.if t .ne 15
.LP
.ft B
.nf
.sp .5
void
xdrrec_create(xdrs, sendsize, recvsize, handle, readit, writeit)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
unsigned int sendsize, recvsize;
2004-11-03 13:51:07 +00:00
char *handle;
int (*readit) (), (*writeit) ();
.fi
.ft R
.IP
This routine initializes the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream object pointed to by
.IR xdrs .
The stream's data is written to a buffer of size
.IR sendsize ;
a value of zero indicates the system should use a suitable
default.
The stream's data is read from a buffer of size
2004-11-03 13:51:07 +00:00
.IR recvsize ;
it too can be set to a suitable default by passing a zero
value.
When a stream's output buffer is full,
.I writeit
is called.
Similarly, when a stream's input buffer is empty,
2004-11-03 13:51:07 +00:00
.I readit
is called.
The behavior of these two routines is similar to
the system calls
.BR read (2)
2004-11-03 13:51:07 +00:00
and
.BR write (2),
2004-11-03 13:51:07 +00:00
except that
.I handle
is passed to the former routines as the first parameter.
Note: the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream's
.I op
field must be set by the caller.
.IP
Warning: this
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream implements an intermediate record stream.
Therefore there are additional bytes in the stream
to provide record boundary information.
.br
.if t .ne 9
.LP
.ft B
.nf
.sp .5
xdrrec_endofrecord(xdrs, sendnow)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
int sendnow;
.fi
.ft R
.IP
This routine can be invoked only on
streams created by
.BR xdrrec_create ().
2004-11-03 13:51:07 +00:00
The data in the output buffer is marked as a completed
record,
and the output buffer is optionally written out if
.I sendnow
2007-12-25 22:02:19 +00:00
is nonzero.
This routine returns one if it succeeds, zero otherwise.
2004-11-03 13:51:07 +00:00
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
xdrrec_eof(xdrs)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
int empty;
.fi
.ft R
.IP
This routine can be invoked only on
streams created by
.BR xdrrec_create ().
2004-11-03 13:51:07 +00:00
After consuming the rest of the current record in the stream,
this routine returns one if the stream has no more input,
zero otherwise.
.br
.if t .ne 3
.LP
.ft B
.nf
.sp .5
xdrrec_skiprecord(xdrs)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
This routine can be invoked only on
streams created by
.BR xdrrec_create ().
2004-11-03 13:51:07 +00:00
It tells the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
implementation that the rest of the current record
in the stream's input buffer should be discarded.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 11
.LP
.ft B
.nf
.sp .5
xdr_reference(xdrs, pp, size, proc)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char **pp;
unsigned int size;
2004-11-03 13:51:07 +00:00
xdrproc_t proc;
.fi
.ft R
.IP
A primitive that provides pointer chasing within structures.
The parameter
.I pp
is the address of the pointer;
.I size
is the
.I sizeof
the structure that
.I *pp
points to; and
.I proc
is an
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
procedure that filters the structure
between its C form and its external representation.
This routine returns one if it succeeds, zero otherwise.
.IP
Warning: this routine does not understand
2007-12-24 16:10:29 +00:00
NULL
pointers.
Use
.BR xdr_pointer ()
2004-11-03 13:51:07 +00:00
instead.
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
xdr_setpos(xdrs, pos)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
unsigned int pos;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A macro that invokes the set position routine associated with
the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream
.IR xdrs .
The parameter
.I pos
is a position value obtained from
.BR xdr_getpos ().
2004-11-03 13:51:07 +00:00
This routine returns one if the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream could be repositioned,
and zero otherwise.
.IP
Warning: it is difficult to reposition some types of
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
streams, so this routine may fail with one
type of stream and succeed with another.
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
xdr_short(xdrs, sp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
short *sp;
.fi
.ft R
.IP
A filter primitive that translates between C
2007-06-23 07:56:56 +00:00
.I short
2004-11-03 13:51:07 +00:00
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
void
xdrstdio_create(xdrs, file, op)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
FILE *file;
2004-11-03 13:51:07 +00:00
enum xdr_op op;
.fi
.ft R
.IP
This routine initializes the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream object pointed to by
.IR xdrs .
The
2007-12-24 16:10:29 +00:00
XDR
2007-06-23 08:19:17 +00:00
stream data is written to, or read from, the
.I stdio
2004-11-03 13:51:07 +00:00
stream
.IR file .
The parameter
.I op
determines the direction of the
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
stream (either
2007-12-16 15:39:37 +00:00
.BR XDR_ENCODE ,
.BR XDR_DECODE ,
2004-11-03 13:51:07 +00:00
or
2007-12-16 15:39:37 +00:00
.BR XDR_FREE ).
2004-11-03 13:51:07 +00:00
.IP
Warning: the destroy routine associated with such
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
streams calls
.BR fflush (3)
2004-11-03 13:51:07 +00:00
on the
.I file
stream, but never
.BR fclose (3).
2004-11-03 13:51:07 +00:00
.br
.if t .ne 9
.LP
.ft B
.nf
.sp .5
xdr_string(xdrs, sp, maxsize)
2007-12-16 15:39:37 +00:00
XDR
2004-11-03 13:51:07 +00:00
*xdrs;
char **sp;
unsigned int maxsize;
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A filter primitive that translates between C strings and
their
corresponding external representations.
Strings cannot be longer than
.IR maxsize .
Note:
2004-11-03 13:51:07 +00:00
.I sp
is the address of the string's pointer.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 8
.LP
.ft B
.nf
.sp .5
xdr_u_char(xdrs, ucp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
unsigned char *ucp;
.fi
.ft R
.IP
A filter primitive that translates between
2006-02-09 20:24:53 +00:00
.I unsigned
2004-11-03 13:51:07 +00:00
C characters and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 9
.LP
.ft B
.nf
.sp .5
xdr_u_int(xdrs, up)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
unsigned *up;
.fi
.ft R
.IP
A filter primitive that translates between C
2006-02-09 20:24:53 +00:00
.I unsigned
2004-11-03 13:51:07 +00:00
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_u_long(xdrs, ulp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
unsigned long *ulp;
.fi
.ft R
.IP
A filter primitive that translates between C
2006-02-09 20:24:53 +00:00
.I "unsigned long"
2004-11-03 13:51:07 +00:00
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 7
.LP
.ft B
.nf
.sp .5
xdr_u_short(xdrs, usp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
unsigned short *usp;
.fi
.ft R
.IP
A filter primitive that translates between C
2006-02-09 20:24:53 +00:00
.I "unsigned short"
2004-11-03 13:51:07 +00:00
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 16
.LP
.ft B
.nf
.sp .5
xdr_union(xdrs, dscmp, unp, choices, dfault)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
int *dscmp;
char *unp;
struct xdr_discrim *choices;
2007-12-16 15:39:37 +00:00
bool_t (*defaultarm) (); /* may equal NULL */
2004-11-03 13:51:07 +00:00
.fi
.ft R
.IP
A filter primitive that translates between a discriminated C
2007-06-23 07:56:56 +00:00
.I union
and its corresponding external representation.
It first
2004-11-03 13:51:07 +00:00
translates the discriminant of the union located at
.IR dscmp .
This discriminant is always an
2007-06-23 07:56:56 +00:00
.IR enum_t .
2004-11-03 13:51:07 +00:00
Next the union located at
.I unp
is translated.
The parameter
2004-11-03 13:51:07 +00:00
.I choices
is a pointer to an array of
.BR xdr_discrim ()
structures.
Each structure contains an ordered pair of
2004-11-03 13:51:07 +00:00
.RI [ value , proc ].
If the union's discriminant is equal to the associated
.IR value ,
then the
.I proc
is called to translate the union.
The end of the
.BR xdr_discrim ()
2004-11-03 13:51:07 +00:00
structure array is denoted by a routine of value
2007-12-24 16:10:29 +00:00
NULL.
2004-11-03 13:51:07 +00:00
If the discriminant is not found in the
.I choices
array, then the
.I defaultarm
procedure is called (if it is not
2007-12-24 16:10:29 +00:00
NULL).
2004-11-03 13:51:07 +00:00
Returns one if it succeeds, zero otherwise.
.br
.if t .ne 6
.LP
.ft B
.nf
.sp .5
xdr_vector(xdrs, arrp, size, elsize, elproc)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char *arrp;
unsigned int size, elsize;
2004-11-03 13:51:07 +00:00
xdrproc_t elproc;
.fi
.ft R
.IP
A filter primitive that translates between fixed-length
arrays
and their corresponding external representations.
The parameter
2004-11-03 13:51:07 +00:00
.I arrp
is the address of the pointer to the array, while
.I size
2007-09-06 18:26:32 +00:00
is the element count of the array.
The parameter
2004-11-03 13:51:07 +00:00
.I elsize
is the
.I sizeof
each of the array's elements, and
.I elproc
is an
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
filter that translates between
the array elements' C form, and their external
representation.
This routine returns one if it succeeds, zero otherwise.
.br
.if t .ne 5
.LP
.ft B
.nf
.sp .5
xdr_void()
.fi
.ft R
.IP
This routine always returns one.
It may be passed to
2007-12-24 16:10:29 +00:00
RPC
2004-11-03 13:51:07 +00:00
routines that require a function parameter,
where nothing is to be done.
.br
.if t .ne 10
.LP
.ft B
.nf
.sp .5
xdr_wrapstring(xdrs, sp)
2007-12-16 15:39:37 +00:00
XDR *xdrs;
2004-11-03 13:51:07 +00:00
char **sp;
.fi
.ft R
.IP
A primitive that calls
2007-12-16 15:39:37 +00:00
.B "xdr_string(xdrs, sp,MAXUN.UNSIGNED );"
2004-11-03 13:51:07 +00:00
where
.B
2007-12-24 16:10:29 +00:00
.B MAXUN.UNSIGNED
2004-11-03 13:51:07 +00:00
is the maximum value of an unsigned integer.
.BR xdr_wrapstring ()
2004-11-03 13:51:07 +00:00
is handy because the
2007-12-24 16:10:29 +00:00
RPC
2004-11-03 13:51:07 +00:00
package passes a maximum of two
2007-12-24 16:10:29 +00:00
XDR
2004-11-03 13:51:07 +00:00
routines as parameters, and
.BR xdr_string (),
2004-11-03 13:51:07 +00:00
one of the most frequently used primitives, requires three.
Returns one if it succeeds, zero otherwise.
.SH "SEE ALSO"
.BR rpc (3)
.LP
The following manuals:
.RS
.ft I
eXternal Data Representation Standard: Protocol Specification
.br
eXternal Data Representation: Sun Technical Notes
.ft R
.br
2007-12-16 15:39:37 +00:00
.IR "XDR: External Data Representation Standard" ,
2007-12-24 16:10:29 +00:00
RFC\ 1014, Sun Microsystems, Inc.,
USC-ISI.
2007-12-17 09:22:40 +00:00
.RE