Alow overriding of the various SHM* options.

Submitted by:	Heikki Suonsivu <hsu@fx7.cs.hut.fi>
This commit is contained in:
Joerg Wunsch 1995-02-16 11:29:19 +00:00
parent 48ab66a1f5
commit 3ab1adc555
2 changed files with 22 additions and 2 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.c 8.2 (Berkeley) 1/21/94
* $Id: param.c,v 1.5 1995/01/09 16:04:20 davidg Exp $
* $Id: param.c,v 1.6 1995/01/12 03:38:12 davidg Exp $
*/
#include <sys/param.h>
@ -91,11 +91,21 @@ int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
* Values in support of System V compatible shared memory. XXX
*/
#ifdef SYSVSHM
#ifndef SHMMAX
#define SHMMAX (SHMMAXPGS*NBPG)
#endif
#ifndef SHMMIN
#define SHMMIN 1
#endif
#ifndef SHMMNI
#define SHMMNI 32 /* <= SHMMMNI in shm.h */
#endif
#ifndef SHMSEG
#define SHMSEG 8
#endif
#ifndef SHMALL
#define SHMALL (SHMMAXPGS/CLSIZE)
#endif
struct shminfo shminfo = {
SHMMAX,

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.c 8.2 (Berkeley) 1/21/94
* $Id: param.c,v 1.5 1995/01/09 16:04:20 davidg Exp $
* $Id: param.c,v 1.6 1995/01/12 03:38:12 davidg Exp $
*/
#include <sys/param.h>
@ -91,11 +91,21 @@ int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
* Values in support of System V compatible shared memory. XXX
*/
#ifdef SYSVSHM
#ifndef SHMMAX
#define SHMMAX (SHMMAXPGS*NBPG)
#endif
#ifndef SHMMIN
#define SHMMIN 1
#endif
#ifndef SHMMNI
#define SHMMNI 32 /* <= SHMMMNI in shm.h */
#endif
#ifndef SHMSEG
#define SHMSEG 8
#endif
#ifndef SHMALL
#define SHMALL (SHMMAXPGS/CLSIZE)
#endif
struct shminfo shminfo = {
SHMMAX,