fixed "f" option so that it would create the target file if needed
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
ef49a333 1/* param.c 4.3 81/04/28 */
ec6f91b0
BJ
2
3#include "../h/param.h"
4#include "../h/systm.h"
5#include "../h/dir.h"
6#include "../h/user.h"
7#include "../h/proc.h"
8#include "../h/text.h"
9#include "../h/inode.h"
10#include "../h/file.h"
11#include "../h/callout.h"
12#include "../h/clist.h"
13#include "../h/cmap.h"
ef49a333 14#include "../h/port.h"
ec6f91b0
BJ
15/*
16 * System parameter formulae.
17 *
18 * This file is copied into each directory where we compile
19 * the kernel; it should be modified there to suit local taste
20 * if necessary.
21 *
22 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
23 */
24
25int hz = HZ;
26int timezone = TIMEZONE;
27int dstflag = DST;
28#define NPROC (20 + 8 * MAXUSERS)
29int nproc = NPROC;
30int ntext = 24 + MAXUSERS;
4aef8eda 31int ninode = (NPROC + 16 + MAXUSERS) + 32;
ec6f91b0
BJ
32int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
33int ncallout = 16 + MAXUSERS;
34int nclist = 100 + 16 * MAXUSERS;
ef49a333 35int nport = NPROC / 2;
ec6f91b0
BJ
36
37/*
38 * These are initialized at bootstrap time
39 * to values dependent on memory size
40 */
41int nbuf, nswbuf;
42
43/*
44 * These have to be allocated somewhere; allocating
45 * them here forces loader errors if this file is omitted.
46 */
47struct proc *proc, *procNPROC;
48struct text *text, *textNTEXT;
49struct inode *inode, *inodeNINODE;
50struct file *file, *fileNFILE;
51struct callout *callout;
52struct cblock *cfree;
53
54struct buf *buf, *swbuf;
55short *swsize;
56int *swpf;
57char *buffers;
58struct cmap *cmap, *ecmap;