USG_PG3/usr/source/head/param.h
/*
* tunable variables
*/
#define NBUF 15 /* size of buffer cache */
#define NINODE 100*1 /* number of in core inodes */
#define NFILE 100*1 /* number of in core file structures */
#define NMOUNT 5 /* number of mountable file systems */
#define MAXMEM (64*32) /* max core per process - first # is Kw */
#define MAXUMEM (28672) /* maximum amt. of user memory in mem blocks */
#define SSIZE 20 /* initial stack size (*64 bytes) */
#define SINCR 20 /* increment of stack (*64 bytes) */
#define NOFILE 20 /* max open files per process */
#define FCLFILE 15 /* First file auto-closed on exec */
#define CANBSIZ 256 /* max size of typewriter line */
#define CMAPSIZ 50 /* size of core allocation area */
#define SMAPSIZ 50 /* size of swap allocation area */
#define NCALL 20 /* max simultaneous time callouts */
#define NPROC 50*1 /* max number of processes */
#define NTEXT 20 /* max number of pure texts */
#define NCLIST 100*1 /* max total clist size */
#define HZ 60 /* Ticks/second of the clock */
#define MSGBUFS 128 /* Characters saved from error messages */
#define NCARGS 5120 /* # characters in exec arglist */
#define NLOCK 10 /* max number semaphores */
#define NOLOCK 4 /* max semaphores per process */
#define NMQHDR 10 /* number message q headers */
#define MSGMEM 50 /* memory for messages (*32 bytes) */
#define MMAPSIZ 52 /* size of msg allocation area */
/*
* priorities
* probably should not be
* altered too much
*/
#define PSWP -100
#define PINOD -90
#define PRIBIO -50
#define PPIPE 1
#define PWAIT 40
#define PSLEP 90
#define PUSER 100
/*
* signals
* dont change
*/
#define NSIG 20
/*
* No more than 32 signals (1-33) because they are
* stored in bits in a (long) word.
*/
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt (rubout) */
#define SIGQIT 3 /* quit (FS) */
#define SIGINS 4 /* illegal instruction */
#define SIGTRC 5 /* trace or breakpoint */
#define SIGIOT 6 /* iot */
#define SIGEMT 7 /* emt */
#define SIGFPT 8 /* floating exception */
#define SIGKIL 9 /* kill, uncatchable termination */
#define SIGBUS 10 /* bus error */
#define SIGSEG 11 /* segmentation violation */
#define SIGSYS 12 /* bad system call */
#define SIGPIPE 13 /* end of pipe */
#define SIGCLK 14 /* alarm clock */
#define SIGTRM 15 /* Catchable termination */
#define SIGCLD 18 /* Death of a child */
/*
* fundamental constants
* cannot be changed
*/
#define USIZE 16 /* size of user block (*64) */
#define NULL 0
#define NODEV (-1)
#define ROOTINO 1 /* i number of all roots */
#define DIRSIZ 14 /* max characters per directory */
/*
* structure to access an
* integer in bytes
*/
struct
{
char lobyte;
char hibyte;
};
/*
* structure to access an integer
*/
struct
{
int integ;
};
/*
* structure to access a long as integers
*/
struct {
int hiword;
int loword;
};
/*
* Certain processor registers
*/
#define PS 0177776
#define KL 0177560
#define SW 0177570
/*
* Some macros for units conversion
*/
/* Core clicks (64 bytes) to segments */
#define ctos(x) ((x+127)>>7)
/* Core clicks (64 bytes) to blocks */
#define ctob(x) ((x+7)>>3)