static void xdrmem_destroy();
static struct xdr_ops xdrmem_ops = {
+#ifdef AFS_NT40_ENV
+ /* Windows does not support labeled assigments */
+ xdrmem_getint32, /* deserialize an afs_int32 */
+ xdrmem_putint32, /* serialize an afs_int32 */
+ xdrmem_getbytes, /* deserialize counted bytes */
+ xdrmem_putbytes, /* serialize counted bytes */
+ xdrmem_getpos, /* get offset in the stream: not supported. */
+ xdrmem_setpos, /* set offset in the stream: not supported. */
+ xdrmem_inline, /* prime stream for inline macros */
+ xdrmem_destroy /* destroy stream */
+#else
.x_getint32 = xdrmem_getint32,
.x_putint32 = xdrmem_putint32,
.x_getbytes = xdrmem_getbytes,
.x_setpos = xdrmem_setpos,
.x_inline = xdrmem_inline,
.x_destroy = xdrmem_destroy
+#endif
};
/*
static u_int fix_buf_size(u_int s);
static struct xdr_ops xdrrec_ops = {
+#ifdef AFS_NT40_ENV
+ /* Windows does not support labeled assignments */
+ xdrrec_getint32, /* deserialize an afs_int32 */
+ xdrrec_putint32, /* serialize an afs_int32 */
+ xdrrec_getbytes, /* deserialize counted bytes */
+ xdrrec_putbytes, /* serialize counted bytes */
+ xdrrec_getpos, /* get offset in the stream: not supported. */
+ xdrrec_setpos, /* set offset in the stream: not supported. */
+ xdrrec_inline, /* prime stream for inline macros */
+ xdrrec_destroy /* destroy stream */
+#else
.x_getint32 = xdrrec_getint32,
.x_putint32 = xdrrec_putint32,
.x_getbytes = xdrrec_getbytes,
.x_setpos = xdrrec_setpos,
.x_inline = xdrrec_inline,
.x_destroy = xdrrec_destroy
+#endif
};
/* * Create an xdr handle for xdrrec
* Ops vector for stdio type XDR
*/
static struct xdr_ops xdrrx_ops = {
+#ifdef AFS_NT40_ENV
+ /* Windows does not support labeled assigments */
+ xdrrx_getint32, /* deserialize an afs_int32 */
+ xdrrx_putint32, /* serialize an afs_int32 */
+ xdrrx_getbytes, /* deserialize counted bytes */
+ xdrrx_putbytes, /* serialize counted bytes */
+ NULL, /* get offset in the stream: not supported. */
+ NULL, /* set offset in the stream: not supported. */
+ xdrrx_inline, /* prime stream for inline macros */
+ NULL /* destroy stream */
+#else
#if defined(KERNEL) && ((defined(AFS_SGI61_ENV) && (_MIPS_SZLONG != _MIPS_SZINT)) || defined(AFS_HPUX_64BIT_ENV))
.x_getint64 = xdrrx_getint64,
.x_putint64 = xdrrx_putint64,
.x_getint32 = xdrrx_getint32, /* deserialize an afs_int32 */
.x_putint32 = xdrrx_putint32, /* serialize an afs_int32 */
#endif
+#endif
};
/*
* Ops vector for stdio type XDR
*/
static struct xdr_ops xdrstdio_ops = {
+#ifdef AFS_NT40_ENV
+ /* Windows does not support labeled assignments */
+ xdrstdio_getint32, /* deserialize an afs_int32 */
+ xdrstdio_putint32, /* serialize an afs_int32 */
+ xdrstdio_getbytes, /* deserialize counted bytes */
+ xdrstdio_putbytes, /* serialize counted bytes */
+ xdrstdio_getpos, /* get offset in the stream */
+ xdrstdio_setpos, /* set offset in the stream */
+ xdrstdio_inline, /* prime stream for inline macros */
+ xdrstdio_destroy /* destroy stream */
+#else
.x_getint32 = xdrstdio_getint32, /* deserialize an afs_int32 */
.x_putint32 = xdrstdio_putint32, /* serialize an afs_int32 */
.x_getbytes = xdrstdio_getbytes, /* deserialize counted bytes */
.x_setpos = xdrstdio_setpos, /* set offset in the stream */
.x_inline = xdrstdio_inline, /* prime stream for inline macros */
.x_destroy = xdrstdio_destroy /* destroy stream */
+#endif
};
/*