[OpenAFS-devel] non mem*() on sgi
chas williams
chas@cmf.nrl.navy.mil
Thu, 11 Oct 2001 08:29:45 -0400
it seems irix is one of those platforms w/o the mem functions in the
kernel:
--- src/config/param.sgi_62.h.000 Thu Oct 11 08:25:48 2001
+++ src/config/param.sgi_62.h Thu Oct 11 08:26:23 2001
@@ -92,6 +92,11 @@
#define DEBUG 1
#define AFS_SGI_DUAL_FS_CACHE 1 /* implies supports EFS or XFS cache */
+
+#define memset(A, B, S) bzero(A, S)
+#define memcpy(B, A, S) bcopy(A, B, S)
+#define memcmp(A, B, S) bcmp(A, B, S)
+
#endif /* KERNEL */
#ifndef CMSERVERPREF
--- src/config/param.sgi_63.h.000 Thu Oct 11 08:25:39 2001
+++ src/config/param.sgi_63.h Thu Oct 11 08:26:30 2001
@@ -86,6 +86,10 @@
#define AFS_EVENT_LOCK 1 /* osi_Sleep/osi_Wakeup use spinlock. */
#define AFS_SGI_DUAL_FS_CACHE 1 /* implies supports EFS or XFS cache */
+#define memset(A, B, S) bzero(A, S)
+#define memcpy(B, A, S) bcopy(A, B, S)
+#define memcmp(A, B, S) bcmp(A, B, S)
+
#endif /* KERNEL */
#ifndef CMSERVERPREF
--- src/config/param.sgi_64.h.000 Thu Oct 11 08:25:30 2001
+++ src/config/param.sgi_64.h Thu Oct 11 08:26:36 2001
@@ -102,6 +102,10 @@
#define AFS_EVENT_LOCK 1 /* osi_Sleep/osi_Wakeup use spinlock. */
#define AFS_SGI_DUAL_FS_CACHE 1 /* implies supports EFS or XFS cache */
+#define memset(A, B, S) bzero(A, S)
+#define memcpy(B, A, S) bcopy(A, B, S)
+#define memcmp(A, B, S) bcmp(A, B, S)
+
#endif /* KERNEL */
#ifndef CMSERVERPREF
--- src/config/param.sgi_65.h.000 Wed Oct 10 15:25:49 2001
+++ src/config/param.sgi_65.h Wed Oct 10 15:25:51 2001
@@ -110,6 +110,10 @@
#define AFS_EVENT_LOCK 1 /* osi_Sleep/osi_Wakeup use spinlock. */
#define AFS_SGI_DUAL_FS_CACHE 1 /* implies supports EFS or XFS cache */
+#define memset(A, B, S) bzero(A, S)
+#define memcpy(B, A, S) bcopy(A, B, S)
+#define memcmp(A, B, S) bcmp(A, B, S)
+
#endif /* KERNEL */
#ifndef CMSERVERPREF