From 2b138578d7ce1852da8ba8ebd60619acf6abbed8 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 20 Sep 1997 12:10:09 +0000 Subject: [PATCH] Correct for the extra member in 'struct kern_msgbuf' when calculating the number of bytes we want to allocate. --- sys/arch/sparc/include/param.h | 4 ++-- sys/arch/sun3/include/param.h | 6 +++--- sys/arch/sun3/include/param3.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index dc3897991047..e43c16ab66fa 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.30 1997/09/19 13:55:26 leo Exp $ */ +/* $NetBSD: param.h,v 1.31 1997/09/20 12:10:09 leo Exp $ */ /* * Copyright (c) 1992, 1993 @@ -123,7 +123,7 @@ extern int nbpg, pgofset, pgshift; #endif #endif -#define MSGBUFSIZE (4096 - 3 * sizeof(long)) +#define MSGBUFSIZE (4096 - 4 * sizeof(long)) /* * Size of kernel malloc arena in CLBYTES-sized logical pages. diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h index d97368838a83..1fa291b2de4f 100644 --- a/sys/arch/sun3/include/param.h +++ b/sys/arch/sun3/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.44 1997/09/19 13:55:35 leo Exp $ */ +/* $NetBSD: param.h,v 1.45 1997/09/20 12:10:38 leo Exp $ */ /* * Copyright (c) 1994, 1995 Gordon W. Ross @@ -66,9 +66,9 @@ #define UPAGES 2 /* pages of u-area */ -#include +#define MSGBUFSIZE (4096 - 4 * sizeof(long)) -#define MSGBUFSIZE (4096 - 3 * sizeof(long)) +#include /* * Size of kernel malloc arena in CLBYTES-sized logical pages diff --git a/sys/arch/sun3/include/param3.h b/sys/arch/sun3/include/param3.h index 7dd819c3d2bd..79a555d386df 100644 --- a/sys/arch/sun3/include/param3.h +++ b/sys/arch/sun3/include/param3.h @@ -1,4 +1,4 @@ -/* $NetBSD: param3.h,v 1.44 1997/09/19 13:55:35 leo Exp $ */ +/* $NetBSD: param3.h,v 1.45 1997/09/20 12:10:38 leo Exp $ */ /* * Copyright (c) 1994, 1995 Gordon W. Ross @@ -66,9 +66,9 @@ #define UPAGES 2 /* pages of u-area */ -#include +#define MSGBUFSIZE (4096 - 4 * sizeof(long)) -#define MSGBUFSIZE (4096 - 3 * sizeof(long)) +#include /* * Size of kernel malloc arena in CLBYTES-sized logical pages