1: /*
2: * tunable variables
3: */
4:
5: #define NBUF 15 /* size of buffer cache */
6: #define NINODE 100 /* number of in core inodes */
7: #define NFILE 100 /* number of in core file structures */
8: #define NMOUNT 5 /* number of mountable file systems */
9: #define NEXEC 3 /* number of simultaneous exec's */
10: #define MAXMEM (64*32) /* max core per process - first # is Kw */
11: #define SSIZE 20 /* initial stack size (*64 bytes) */
12: #define SINCR 20 /* increment of stack (*64 bytes) */
13: #define NOFILE 15 /* max open files per process */
14: #define CANBSIZ 256 /* max size of typewriter line */
15: #define CMAPSIZ 100 /* size of core allocation area */
16: #define SMAPSIZ 100 /* size of swap allocation area */
17: #define NCALL 20 /* max simultaneous time callouts */
18: #define NPROC 50 /* max number of processes */
19: #define NTEXT 40 /* max number of pure texts */
20: #define NCLIST 100 /* max total clist size */
21: #define HZ 60 /* Ticks/second of the clock */
22:
23: /*
24: * priorities
25: * probably should not be
26: * altered too much
27: */
28:
29: #define PSWP -100
30: #define PINOD -90
31: #define PRIBIO -50
32: #define PPIPE 1
33: #define PWAIT 40
34: #define PSLEP 90
35: #define PUSER 100
36:
37: /*
38: * signals
39: * dont change
40: */
41:
42: #define NSIG 20
43: #define SIGHUP 1 /* hangup */
44: #define SIGINT 2 /* interrupt (rubout) */
45: #define SIGQIT 3 /* quit (FS) */
46: #define SIGINS 4 /* illegal instruction */
47: #define SIGTRC 5 /* trace or breakpoint */
48: #define SIGIOT 6 /* iot */
49: #define SIGEMT 7 /* emt */
50: #define SIGFPT 8 /* floating exception */
51: #define SIGKIL 9 /* kill */
52: #define SIGBUS 10 /* bus error */
53: #define SIGSEG 11 /* segmentation violation */
54: #define SIGSYS 12 /* sys */
55: #define SIGPIPE 13 /* end of pipe */
56:
57: /*
58: * fundamental constants
59: * cannot be changed
60: */
61:
62: #define USIZE 16 /* size of user block (*64) */
63: #define NULL 0
64: #define NODEV (-1)
65: #define ROOTINO 1 /* i number of all roots */
66: #define DIRSIZ 14 /* max characters per directory */
67:
68: /*
69: * structure to access an
70: * integer in bytes
71: */
72: struct
73: {
74: char lobyte;
75: char hibyte;
76: };
77:
78: /*
79: * structure to access an integer
80: */
81: struct
82: {
83: int integ;
84: };
85:
86: /*
87: * Certain processor registers
88: */
89: #define PS 0177776
90: #define KL 0177560
91: #define SW 0177570
Defined macros
DIRSIZ
defined in line
66; used 13 times
HZ
defined in line
21; used 5 times
KL
defined in line
90; used 9 times
NBUF
defined in line
5; used 3 times
NCALL
defined in line
17; used 1 times
NEXEC
defined in line
9; used 2 times
NFILE
defined in line
7; used 2 times
NINODE
defined in line
6; used 5 times
NMOUNT
defined in line
8; used 6 times
NODEV
defined in line
64; used 6 times
NPROC
defined in line
18; used 19 times
- in /usr/source/s2/ps.c line
19,
117
- in /usr/sys/ken/clock.c line
111
- in /usr/sys/ken/sig.c line
52,
119,
264
- in /usr/sys/ken/slp.c line
78,
164,
195,
210,
289-292(2),
371
- in /usr/sys/ken/sys1.c line
255-259(2),
287,
337
- in /usr/sys/ken/sys4.c line
226
- in /usr/sys/proc.h line
26
NSIG
defined in line
42; used 5 times
NTEXT
defined in line
19; used 2 times
NULL
defined in line
63; used 105 times
- in /usr/sys/dmr/bio.c line
232
- in /usr/sys/dmr/sys.c line
51
- in /usr/sys/dmr/tty.c line
119
- in /usr/sys/ken/alloc.c line
89,
172-173(2),
214,
261,
294
- in /usr/sys/ken/fio.c line
28-32(2),
192-193(2),
199,
223,
246,
257
- in /usr/sys/ken/iget.c line
35,
56-62(3),
76,
204-205(2)
- in /usr/sys/ken/main.c line
153
- in /usr/sys/ken/nami.c line
94,
105,
114,
127,
159,
169-175(3)
- in /usr/sys/ken/pipe.c line
34-37(2),
43-45(2)
- in /usr/sys/ken/sig.c line
196-200(2)
- in /usr/sys/ken/slp.c line
183-186(2),
236,
270,
284,
304,
358,
372-377(3),
402-404(2),
427,
477
- in /usr/sys/ken/subr.c line
45-46(2),
58,
80-81(2),
94-96(2),
113
- in /usr/sys/ken/sys1.c line
39,
238,
244,
294,
338
- in /usr/sys/ken/sys2.c line
36,
69,
84-88(2),
123,
131,
146-148(2),
161,
208,
222,
251,
259
- in /usr/sys/ken/sys3.c line
23,
37,
75,
98-111(5),
154,
170,
185
- in /usr/sys/ken/sys4.c line
109-113(2),
136,
155,
169
- in /usr/sys/ken/text.c line
32,
57-63(3),
96-99(3),
107,
114,
153
PINOD
defined in line
30; used 4 times
PPIPE
defined in line
32; used 3 times
PS
defined in line
89; used 59 times
- in /usr/sys/conf/m40.s line
14,
30-34(2),
40-47(3),
55,
105-108(3),
131,
137,
143-147(3),
172,
178,
455-456(2),
472-473(2),
480-485(2),
531-548(6),
554,
561-594(11),
614-621(3),
633,
764,
817
- in /usr/sys/dmr/bio.c line
182,
189,
303-308(2)
- in /usr/sys/dmr/dh.c line
239,
299
- in /usr/sys/dmr/tty.c line
182-186(2)
- in /usr/sys/ken/clock.c line
152,
172
- in /usr/sys/ken/slp.c line
29,
54
PSLEP
defined in line
34; used 1 times
PSWP
defined in line
29; used 5 times
PUSER
defined in line
35; used 4 times
PWAIT
defined in line
33; used 1 times
SINCR
defined in line
12; used 1 times
SSIZE
defined in line
11; used 3 times
SW
defined in line
91; used 2 times
USIZE
defined in line
62; used 15 times
Usage of this include