fix unlabelled xdr field order on sun457 kernel for now
authorDerrick Brashear <shadow@dementia.org>
Wed, 4 Aug 2010 13:22:20 +0000 (09:22 -0400)
committerDerrick Brashear <shadow@dementia.org>
Wed, 4 Aug 2010 20:14:37 +0000 (13:14 -0700)
alternate to 2503 (which we will push after branching)

Thanks to Andrew Deason for discovering this issue.

Change-Id: I3a43bb1eab1a753f099c9d21e440f6660c706e37
Reviewed-on: http://gerrit.openafs.org/2514
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/rx/xdr_len.c
src/rx/xdr_mem.c
src/rx/xdr_rec.c
src/rx/xdr_rx.c
src/rx/xdr_stdio.c

index b0bd808..7a55daa 100644 (file)
@@ -90,14 +90,21 @@ static struct xdr_ops xdrlen_ops = {
     NULL,
 #endif
     /* Windows does not support labeled assigments */
+#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
     xdrlen_getint32,    /* not supported */
     xdrlen_putint32,    /* serialize an afs_int32 */
+#endif
     xdrlen_getbytes,    /* not supported */
     xdrlen_putbytes,    /* serialize counted bytes */
     xdrlen_getpos,      /* get offset in the stream */
     xdrlen_setpos,      /* set offset in the stream */
     xdrlen_inline,      /* not supported */
-    xdrlen_destroy      /* destroy stream */
+    xdrlen_destroy,     /* destroy stream */
+#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+    NULL,               /* control - not implemented */
+    xdrlen_getint32,    /* not supported */
+    xdrlen_putint32,    /* serialize an afs_int32 */
+#endif
 #else
 #ifdef AFS_XDR_64BITOPS
     .x_getint64 = NULL,
index a489f6b..475ea03 100644 (file)
@@ -68,14 +68,21 @@ static struct xdr_ops xdrmem_ops = {
     NULL,
 #endif
     /* Windows does not support labeled assigments */
+#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
     xdrmem_getint32,    /* deserialize an afs_int32 */
     xdrmem_putint32,    /* serialize an afs_int32 */
+#endif
     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 */
+    xdrmem_destroy,     /* destroy stream */
+#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+    NULL,               /* control - not implemented */
+    xdrmem_getint32,    /* not supported */
+    xdrmem_putint32,    /* serialize an afs_int32 */
+#endif
 #else
 #ifdef AFS_XDR_64BITOPS
     .x_getint64 = NULL,
index a99cfb1..ddec333 100644 (file)
@@ -123,14 +123,21 @@ static struct xdr_ops xdrrec_ops = {
     NULL,
 #endif
     /* Windows does not support labeled assignments */
+#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
     xdrrec_getint32,    /* deserialize an afs_int32 */
     xdrrec_putint32,    /* serialize an afs_int32 */
+#endif
     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 */
+    xdrrec_destroy,     /* destroy stream */
+#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+    NULL,
+    xdrrec_getint32,    /* deserialize an afs_int32 */
+    xdrrec_putint32,    /* serialize an afs_int32 */
+#endif
 #else
 #ifdef AFS_XDR_64BITOPS
     .x_getint64 = NULL,
index 2852b6a..85e3ba2 100644 (file)
@@ -86,14 +86,21 @@ static struct xdr_ops xdrrx_ops = {
     xdrrx_putint64,     /* serialize an afs_int64 */
 #endif
     /* Windows does not support labeled assigments */
+#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
     xdrrx_getint32,    /* deserialize an afs_int32 */
     xdrrx_putint32,    /* serialize an afs_int32 */
+#endif
     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 */
+    NULL,              /* destroy stream */
+#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+    NULL,               /* control - not implemented */
+    xdrrx_getint32,     /* not supported */
+    xdrrx_putint32,     /* serialize an afs_int32 */
+#endif
 #else
 #ifdef AFS_XDR_64BITOPS
     .x_getint64 = xdrrx_getint64,
index da280b8..ee941e7 100644 (file)
@@ -64,14 +64,21 @@ static struct xdr_ops xdrstdio_ops = {
     NULL,
 #endif
     /* Windows does not support labeled assignments */
+#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
     xdrstdio_getint32,         /* deserialize an afs_int32 */
     xdrstdio_putint32,         /* serialize an afs_int32 */
+#endif
     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 */
+    xdrstdio_destroy,          /* destroy stream */
+#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+    NULL,
+    xdrstdio_getint32,    /* deserialize an afs_int32 */
+    xdrstdio_putint32,    /* serialize an afs_int32 */
+#endif
 #else
 #ifdef AFS_XDR_64BITOPS
     .x_getint64 = NULL,