Lines Matching +full:- +full:v
8 * - Redistributions of source code must retain the above copyright notice,
10 * - Redistributions in binary form must reproduce the above copyright notice,
13 * - Neither the name of Sun Microsystems, Inc. nor the names of its
31 * $FreeBSD: src/include/rpc/xdr.h,v 1.23 2003/03/07 13:19:40 nectar Exp $
32 * $NetBSD: xdr.h,v 1.19 2000/07/17 05:00:45 matt Exp $
52 * types and an external bit-string representation. Library supplied
53 * routines provide for the conversion on built-in C data types. These
55 * a type encode/decode routine for each user-defined type.
96 # define RNDUP(x) (((x) + BYTES_PER_XDR_UNIT - 1) & ~(BYTES_PER_XDR_UNIT - 1))
98 #define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) / BYTES_PER_XDR_UNIT) \
171 (*(xdrs)->x_ops->x_getint32)(xdrs, int32p)
173 (*(xdrs)->x_ops->x_getint32)(xdrs, int32p)
176 (*(xdrs)->x_ops->x_putint32)(xdrs, int32p)
178 (*(xdrs)->x_ops->x_putint32)(xdrs, int32p)
181 (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
183 (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
186 (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
188 (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
191 (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
193 (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
196 (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
198 (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
201 (*(xdrs)->x_ops->x_getpostn)(xdrs)
203 (*(xdrs)->x_ops->x_getpostn)(xdrs)
206 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
208 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
211 (*(xdrs)->x_ops->x_inline)(xdrs, len)
213 (*(xdrs)->x_ops->x_inline)(xdrs, len)
217 if ((xdrs)->x_ops->x_destroy) \
218 (*(xdrs)->x_ops->x_destroy)(xdrs); \
222 if ((xdrs)->x_ops->x_destroy) \
223 (*(xdrs)->x_ops->x_destroy)(xdrs); \
227 * Solaris strips the '_t' from these types -- not sure why.
254 * In-line routines for fast encode/decode of primitive data types.
269 #define IXDR_PUT_INT32(buf, v) (*(buf)++ =(int32_t)htonl((u_int32_t)v)) argument
271 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_INT32((buf), ((int32_t)(v))) argument
278 #define IXDR_PUT_LONG(buf, v) (*(buf)++ =(int32_t)htonl((u_int32_t)v)) argument
280 #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG((buf), (v)) argument
287 #define IXDR_PUT_BOOL(buf, v) IXDR_PUT_LONG((buf), (v)) argument
288 #define IXDR_PUT_ENUM(buf, v) IXDR_PUT_LONG((buf), (v)) argument
289 #define IXDR_PUT_SHORT(buf, v) IXDR_PUT_LONG((buf), (v)) argument
290 #define IXDR_PUT_U_SHORT(buf, v) IXDR_PUT_LONG((buf), (v)) argument