84#define BYTES_PER_XDR_UNIT (4)
91#define RNDUP(x) (((x) + BYTES_PER_XDR_UNIT - 1) & ~(BYTES_PER_XDR_UNIT - 1))
94 ((((x) + BYTES_PER_XDR_UNIT - 1) / BYTES_PER_XDR_UNIT) * BYTES_PER_XDR_UNIT)
155#define XDR_GETINT32(xdrs, int32p) (*(xdrs)->x_ops->x_getint32)(xdrs, int32p)
156#define xdr_getint32(xdrs, int32p) (*(xdrs)->x_ops->x_getint32)(xdrs, int32p)
158#define XDR_PUTINT32(xdrs, int32p) (*(xdrs)->x_ops->x_putint32)(xdrs, int32p)
159#define xdr_putint32(xdrs, int32p) (*(xdrs)->x_ops->x_putint32)(xdrs, int32p)
161#define XDR_GETLONG(xdrs, longp) (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
162#define xdr_getlong(xdrs, longp) (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
164#define XDR_PUTLONG(xdrs, longp) (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
165#define xdr_putlong(xdrs, longp) (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
167#define XDR_GETBYTES(xdrs, addr, len) \
168 (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
169#define xdr_getbytes(xdrs, addr, len) \
170 (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
172#define XDR_PUTBYTES(xdrs, addr, len) \
173 (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
174#define xdr_putbytes(xdrs, addr, len) \
175 (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
177#define XDR_GETPOS(xdrs) (*(xdrs)->x_ops->x_getpostn)(xdrs)
178#define xdr_getpos(xdrs) (*(xdrs)->x_ops->x_getpostn)(xdrs)
180#define XDR_SETPOS(xdrs, pos) (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
181#define xdr_setpos(xdrs, pos) (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
183#define XDR_INLINE(xdrs, len) (*(xdrs)->x_ops->x_inline)(xdrs, len)
184#define xdr_inline(xdrs, len) (*(xdrs)->x_ops->x_inline)(xdrs, len)
186#define XDR_DESTROY(xdrs) \
188 if ((xdrs)->x_ops->x_destroy) (*(xdrs)->x_ops->x_destroy)(xdrs); \
190#define xdr_destroy(xdrs) \
192 if ((xdrs)->x_ops->x_destroy) (*(xdrs)->x_ops->x_destroy)(xdrs); \
205#define NULL_xdrproc_t ((xdrproc_t)0)
227#define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t) * (buf)++))
228#define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v)))
229#define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf))
230#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_INT32(buf, (int32_t)(v))
236#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))
237#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))
238#define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf))
239#define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v))
241#define IXDR_GET_BOOL(buf) ((bool_t)IXDR_GET_LONG(buf))
242#define IXDR_GET_ENUM(buf, t) ((t)IXDR_GET_LONG(buf))
243#define IXDR_GET_SHORT(buf) ((short)IXDR_GET_LONG(buf))
244#define IXDR_GET_U_SHORT(buf) ((u_short)IXDR_GET_LONG(buf))
246#define IXDR_PUT_BOOL(buf, v) IXDR_PUT_LONG(buf, (long)(v))
247#define IXDR_PUT_ENUM(buf, v) IXDR_PUT_LONG(buf, (long)(v))
248#define IXDR_PUT_SHORT(buf, v) IXDR_PUT_LONG(buf, (long)(v))
249#define IXDR_PUT_U_SHORT(buf, v) IXDR_PUT_LONG(buf, (long)(v))
284 u_int __maxsize) __THROW;
307#define MAX_NETOBJ_SZ 1024
322 enum xdr_op __xop) __THROW;
326 enum xdr_op __xop) __THROW;
331 int (*__readit)(
char *,
char *,
int),
332 int (*__writeit)(
char *,
char *,
int)) __THROW;
const std::string FILE("FILE")
u_int(* x_getpostn)(__const XDR *__xdrs)
Definition: xdr.h:115
bool_t(* x_getbytes)(XDR *__xdrs, caddr_t __addr, u_int __len)
Definition: xdr.h:111
bool_t(* x_putlong)(XDR *__xdrs, __const long *__lp)
Definition: xdr.h:109
void(* x_destroy)(XDR *__xdrs)
Definition: xdr.h:121
bool_t(* x_getint32)(XDR *__xdrs, int32_t *__ip)
Definition: xdr.h:123
bool_t(* x_getlong)(XDR *__xdrs, long *__lp)
Definition: xdr.h:107
bool_t(* x_setpostn)(XDR *__xdrs, u_int __pos)
Definition: xdr.h:117
bool_t(* x_putbytes)(XDR *__xdrs, __const char *__addr, u_int __len)
Definition: xdr.h:113
bool_t(* x_putint32)(XDR *__xdrs, __const int32_t *__ip)
Definition: xdr.h:125
caddr_t x_public
Definition: xdr.h:128
struct XDR::xdr_ops * x_ops
caddr_t x_base
Definition: xdr.h:130
u_int x_handy
Definition: xdr.h:131
caddr_t x_private
Definition: xdr.h:129
enum xdr_op x_op
Definition: xdr.h:105
u_int n_len
Definition: xdr.h:309
char * n_bytes
Definition: xdr.h:310
int value
Definition: xdr.h:207
xdrproc_t proc
Definition: xdr.h:208
__u_int u_int
Definition: types.h:73
__u_long u_long
Definition: types.h:74
__u_short u_short
Definition: types.h:72
int bool_t
Definition: types.h:35
__quad_t quad_t
Definition: types.h:75
__u_char u_char
Definition: types.h:71
__caddr_t caddr_t
Definition: types.h:82
int enum_t
Definition: types.h:36
__u_quad_t u_quad_t
Definition: types.h:76
bool_t xdr_u_short(XDR *__xdrs, u_short *__usp) __THROW
Definition: xdr.c:307
bool_t(* xdrproc_t)(XDR *, void *,...)
Definition: xdr.h:143
void xdrrec_create(XDR *__xdrs, u_int __sendsize, u_int __recvsize, caddr_t __tcp_handle, int(*__readit)(char *, char *, int), int(*__writeit)(char *, char *, int)) __THROW
bool_t xdrrec_skiprecord(XDR *__xdrs) __THROW
bool_t xdr_u_int(XDR *__xdrs, u_int *__up) __THROW
Definition: xdr.c:123
bool_t xdr_wrapstring(XDR *__xdrs, char **__cpp) __THROW
Definition: xdr.c:651
bool_t xdr_u_hyper(XDR *__xdrs, u_quad_t *__ullp) __THROW
Definition: xdr.c:241
bool_t xdr_vector(XDR *__xdrs, char *__basep, u_int __nelem, u_int __elemsize, xdrproc_t __xdr_elem) __THROW
Definition: xdr_array.c:125
void xdrmem_create(XDR *__xdrs, __const caddr_t __addr, u_int __size, enum xdr_op __xop) __THROW
bool_t xdr_quad_t(XDR *__xdrs, quad_t *__ip) __THROW
bool_t xdr_uint16_t(XDR *__xdrs, uint16_t *__up) __THROW
bool_t xdr_uint8_t(XDR *__xdrs, uint8_t *__up) __THROW
bool_t xdr_u_longlong_t(XDR *__xdrs, u_quad_t *__ullp) __THROW
Definition: xdr.c:267
void xdrstdio_create(XDR *__xdrs, FILE *__file, enum xdr_op __xop) __THROW
bool_t xdr_netobj(XDR *__xdrs, struct netobj *__np) __THROW
Definition: xdr.c:520
xdr_op
Definition: xdr.h:79
@ XDR_DECODE
Definition: xdr.h:79
@ XDR_FREE
Definition: xdr.h:79
@ XDR_ENCODE
Definition: xdr.h:79
bool_t xdr_string(XDR *__xdrs, char **__cpp, u_int __maxsize) __THROW
Definition: xdr.c:584
bool_t xdr_char(XDR *__xdrs, char *__cp) __THROW
Definition: xdr.c:332
bool_t xdr_int16_t(XDR *__xdrs, int16_t *__ip) __THROW
bool_t xdr_double(XDR *__xdrs, double *__dp) __THROW
Definition: xdr_float.c:187
bool_t xdr_void(void) __THROW
Definition: xdr.c:73
bool_t xdr_pointer(XDR *__xdrs, char **__objpp, u_int __obj_size, xdrproc_t __xdr_obj) __THROW
Definition: xdr_ref.c:104
bool_t xdr_float(XDR *__xdrs, float *__fp) __THROW
Definition: xdr_float.c:76
bool_t xdr_reference(XDR *__xdrs, caddr_t *__xpp, u_int __size, xdrproc_t __proc) __THROW
Definition: xdr_ref.c:52
bool_t xdr_int32_t(XDR *__xdrs, int32_t *__ip) __THROW
Definition: xdr.c:107
void xdr_free(xdrproc_t __proc, char *__objp) __THROW
Definition: xdr.c:63
bool_t xdr_long(XDR *__xdrs, long *__lp) __THROW
Definition: xdr.c:169
bool_t xdr_u_long(XDR *__xdrs, u_long *__ulp) __THROW
Definition: xdr.c:187
bool_t xdr_bytes(XDR *__xdrs, char **__cpp, u_int *__sizep, u_int __maxsize) __THROW
Definition: xdr.c:467
bool_t xdr_int64_t(XDR *__xdrs, int64_t *__ip) __THROW
bool_t xdr_longlong_t(XDR *__xdrs, quad_t *__llp) __THROW
Definition: xdr.c:263
bool_t xdrrec_eof(XDR *__xdrs) __THROW
bool_t xdr_bool(XDR *__xdrs, bool_t *__bp) __THROW
Definition: xdr.c:360
bool_t xdr_enum(XDR *__xdrs, enum_t *__ep) __THROW
Definition: xdr.c:385
bool_t xdr_union(XDR *__xdrs, enum_t *__dscmp, char *__unp, __const struct xdr_discrim *__choices, xdrproc_t __dfault) __THROW
bool_t xdr_short(XDR *__xdrs, short *__sp) __THROW
Definition: xdr.c:282
bool_t xdrrec_endofrecord(XDR *__xdrs, bool_t __sendnow) __THROW
u_long xdr_sizeof(xdrproc_t, void *) __THROW
Definition: xdr_sizeof.c:95
bool_t xdr_u_char(XDR *__xdrs, u_char *__cp) __THROW
Definition: xdr.c:346
bool_t xdr_uint32_t(XDR *__xdrs, uint32_t *__up) __THROW
Definition: xdr.c:151
bool_t xdr_opaque(XDR *__xdrs, caddr_t __cp, u_int __cnt) __THROW
Definition: xdr.c:425
bool_t xdr_u_quad_t(XDR *__xdrs, u_quad_t *__up) __THROW
bool_t xdr_uint64_t(XDR *__xdrs, uint64_t *__up) __THROW
bool_t xdr_array(XDR *_xdrs, caddr_t *__addrp, u_int *__sizep, u_int __maxsize, u_int __elsize, xdrproc_t __elproc) __THROW
Definition: xdr_array.c:51
bool_t xdr_hyper(XDR *__xdrs, quad_t *__llp) __THROW
Definition: xdr.c:215
bool_t xdr_int(XDR *__xdrs, int *__ip) __THROW
Definition: xdr.c:79
bool_t xdr_int8_t(XDR *__xdrs, int8_t *__ip) __THROW