]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 b0bd80809a0585bb17ef0b32e41edd69b0ec1eaf..7a55daa58503722559cbf294b6b773ef337ea0d4 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 a489f6be98ffc6e03fc763425a5bfabe94226458..475ea03c6a664bf542e0a68337527582550470f6 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 a99cfb13838488d7bfd6bd72541f66dc5c77d67b..ddec33359b3f8e62e3c4a3a1d1f5c848876c6d0a 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 2852b6ab04b86771d181ac79ec31f148effc706b..85e3ba274695d1dc779c2ca2c8c0a57d1a26f1e4 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 da280b80dc70c148394503f4d4a67cae772c8ec6..ee941e7e754629d483e1e5faaf4a6d322eaed5b6 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,