first listing, remove CHAOS and mpxip
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
4cc46db6 1/* param.c 4.8 81/11/07 */
ec6f91b0
BJ
2
3#include "../h/param.h"
4#include "../h/systm.h"
fc814008 5#ifdef BBNNET
751b301e
BJ
6#include "../inet/inet.h"
7#include "../inet/inet_systm.h"
8#include "../inet/imp.h"
9#include "../h/socket.h"
fc814008 10#endif BBNNET
ec6f91b0
BJ
11#include "../h/dir.h"
12#include "../h/user.h"
13#include "../h/proc.h"
14#include "../h/text.h"
15#include "../h/inode.h"
16#include "../h/file.h"
17#include "../h/callout.h"
18#include "../h/clist.h"
19#include "../h/cmap.h"
ef49a333 20#include "../h/port.h"
ec6f91b0
BJ
21/*
22 * System parameter formulae.
23 *
24 * This file is copied into each directory where we compile
25 * the kernel; it should be modified there to suit local taste
26 * if necessary.
27 *
28 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
29 */
30
31int hz = HZ;
32int timezone = TIMEZONE;
33int dstflag = DST;
34#define NPROC (20 + 8 * MAXUSERS)
35int nproc = NPROC;
36int ntext = 24 + MAXUSERS;
4aef8eda 37int ninode = (NPROC + 16 + MAXUSERS) + 32;
f1da6c81 38int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32;
ec6f91b0
BJ
39int ncallout = 16 + MAXUSERS;
40int nclist = 100 + 16 * MAXUSERS;
ef49a333 41int nport = NPROC / 2;
fc814008
BJ
42#ifdef BBNNET
43int nnetpages = NNETPAGES;
fc814008
BJ
44int nnetcon = NCON;
45int nhost = NHOST;
46#endif BBNNET
ec6f91b0
BJ
47
48/*
49 * These are initialized at bootstrap time
50 * to values dependent on memory size
51 */
52int nbuf, nswbuf;
53
54/*
55 * These have to be allocated somewhere; allocating
56 * them here forces loader errors if this file is omitted.
57 */
58struct proc *proc, *procNPROC;
59struct text *text, *textNTEXT;
60struct inode *inode, *inodeNINODE;
61struct file *file, *fileNFILE;
62struct callout *callout;
63struct cblock *cfree;
ec6f91b0
BJ
64struct buf *buf, *swbuf;
65short *swsize;
66int *swpf;
67char *buffers;
68struct cmap *cmap, *ecmap;
fc814008 69#ifdef BBNNET
fc814008
BJ
70struct ucb *contab, *conNCON;
71struct host *host, *hostNHOST;
fc814008
BJ
72struct net_stat netstat;
73struct impstat imp_stat;
74#endif BBNNET