From: Derrick Brashear Date: Tue, 28 Aug 2001 15:05:34 +0000 (+0000) Subject: solaris-kernel-lacks-mem-functions-20010828 X-Git-Tag: BP-openafs-stable-1_2_x~48 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1cea08ddb0604f6cd9e2dd2e2e7b3823b4337b75;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/config/param.sun4x_55.h b/src/config/param.sun4x_55.h index 77080d0d8..f30a92c6c 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 64abc206e..2e652bc5f 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 96456f028..223b155fe 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 a4405847e..4012efef2 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