From 1cea08ddb0604f6cd9e2dd2e2e7b3823b4337b75 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 28 Aug 2001 15:05:34 +0000 Subject: [PATCH 1/1] solaris-kernel-lacks-mem-functions-20010828 this is a band-aid, since it maps all memsets to bzero; a replacement memset is actually needed for the non zero case --- src/config/param.sun4x_55.h | 3 +++ src/config/param.sun4x_56.h | 3 +++ src/config/param.sun4x_57.h | 3 +++ src/config/param.sun4x_58.h | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/config/param.sun4x_55.h b/src/config/param.sun4x_55.h index 77080d0..f30a92c 100644 --- a/src/config/param.sun4x_55.h +++ b/src/config/param.sun4x_55.h @@ -77,6 +77,9 @@ #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP) #define AFS_KFREE kmem_free #define VATTR_NULL vattr_null +#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 */ #define AFS_DIRENT #ifndef CMSERVERPREF diff --git a/src/config/param.sun4x_56.h b/src/config/param.sun4x_56.h index 64abc20..2e652bc 100644 --- a/src/config/param.sun4x_56.h +++ b/src/config/param.sun4x_56.h @@ -76,6 +76,9 @@ #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP) #define AFS_KFREE kmem_free #define VATTR_NULL vattr_null +#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 */ #define AFS_DIRENT #ifndef CMSERVERPREF diff --git a/src/config/param.sun4x_57.h b/src/config/param.sun4x_57.h index 96456f0..223b155 100644 --- a/src/config/param.sun4x_57.h +++ b/src/config/param.sun4x_57.h @@ -102,6 +102,9 @@ #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP) #define AFS_KFREE kmem_free #define VATTR_NULL vattr_null +#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 */ #define AFS_DIRENT #ifndef CMSERVERPREF diff --git a/src/config/param.sun4x_58.h b/src/config/param.sun4x_58.h index a440584..4012efe 100644 --- a/src/config/param.sun4x_58.h +++ b/src/config/param.sun4x_58.h @@ -99,6 +99,9 @@ #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP) #define AFS_KFREE kmem_free #define VATTR_NULL vattr_null +#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 */ #define AFS_DIRENT #ifndef CMSERVERPREF -- 1.9.4