*
* shm -- shared memory tunable parameters and data structures
*

%PARAM

**********************************************************************
*	maximum # of shared mem segments = 20 (decimal)
*	maximum size of a shared mem seg = 128K bytes	
*	maximum # of attached segs/process = 6
*	min space left between top of data
*	segment and bottom of shared mem (SHMBRK) = 32Kbytes
*	size of page				  = 4K bytes
*
SHMEM		1
SHMMAX		(4*1024*1024)	# max shared mem seg size (in bytes)
SHMMIN		1		# min shared mem segment size (in bytes)
SHMMNI		20		# max # of simultaneous shared mem segments
SHMSEG		6		# max # of shared mem segs per process
SHMBRK		64		# # of pages above data segment to auto attach
SHMALL		4096		# max size of all shared mem segments (pages)

%CONFIG					# code added to conf.c

#ifdef SHMEM
#	ifndef	SYS_IPC_H
#		include	"sys/ipc.h"
#	endif
#	include	"sys/shm.h"

	struct shmid_ds	shmem[SHMMNI];	
	suspend_lock_t	shmlk[SHMMNI];	
	struct shminfo	shminfo = {
		SHMMAX, SHMMIN, SHMMNI, SHMSEG, SHMBRK, SHMALL
	};
#else /* SHMEM */
	struct shmid_ds	shmem[1];	
	suspend_lock_t	shmlk[1];	
	struct shminfo	shminfo = {
		SHMMAX, SHMMIN, 1, SHMSEG, SHMBRK, SHMALL
	};
#endif /* SHMEM */
