1: /*
2: * SCCS id @(#)genassym.c 1.5 (Berkeley) 3/14/83
3: */
4: #include <stdio.h>
5: #include "whoami.h"
6: #include "param.h"
7: #include <sys/proc.h>
8: #include <sys/dir.h>
9: #include <sys/inode.h>
10: #include <sys/user.h>
11: #include <sys/seg.h>
12: #ifdef UCB_METER
13: #include <sys/vm.h>
14: #include "dz.h"
15: #endif
16:
17: main()
18: {
19: register struct user *u = (struct user *)0;
20: register struct segm *se = (struct segm *)0;
21: #ifdef UCB_METER
22: register struct vmrate *vm = (struct vmrate *)0;
23: #endif
24:
25: printf("/ Offsets:\n\n");
26: #ifdef MENLO_OVLY
27: printf("U_CUROV = %o\n",&u->u_ovdata.uo_curov);
28: printf("U_OVBASE = %o\n",&u->u_ovdata.uo_ovbase);
29: #endif
30: #ifdef NONFP
31: printf("U_SIGILL = %o\n", &(u->u_signal[SIGILL]));
32: #ifdef UCB_METER
33: printf("V_TRAP = %o\n",&vm->v_trap);
34: #endif
35: #endif
36:
37: #ifdef UCB_METER
38: printf("V_INTR = %o\n",&vm->v_intr);
39: #ifdef DZ_PDMA
40: printf("V_PDMA = %o\n",&vm->v_pdma);
41: #endif
42: #ifdef MENLO_OVLY
43: printf("V_OVLY = %o\n",&vm->v_ovly);
44: #endif
45: #endif
46: printf("SE_ADDR = %o\n", &se->se_addr);
47: printf("SE_DESC = %o\n", &se->se_desc);
48:
49: printf("\n/ Compilation option settings.\n");
50: printf("/ These are here so they will appear in the namelist.\n\n");
51: #if PDP11==GENERIC
52: printf("PDP11 = 0\t\t/ GENERIC\n");
53: #else
54: printf("PDP11 = %d.\n", PDP11);
55: #endif
56: #ifdef NONSEPARATE
57: printf("NONSEPARATE = 1\n");
58: #else
59: printf("NONSEPARATE = 0\n");
60: #endif
61: #ifdef KERN_NONSEP
62: printf("KERN_NONSEP = 1\n");
63: #else
64: printf("KERN_NONSEP = 0\n");
65: #endif
66: #ifdef UNIBUS_MAP
67: printf("UNIBUS_MAP = 1\n");
68: #else
69: printf("UNIBUS_MAP = 0\n");
70: #endif
71: #ifdef MENLO_KOV
72: printf("MENLO_KOV = 1\n");
73: #else
74: printf("MENLO_KOV = 0\n");
75: #endif
76: #ifdef NONFP
77: printf("NONFP = 1\n");
78: #else
79: printf("NONFP = 0\n");
80: #endif
81: #ifdef SMALL
82: printf("SMALL = 1\n");
83: #else
84: printf("SMALL = 0\n");
85: #endif
86: #ifdef UCB_QUOTAS
87: printf("UCB_QUOTAS = 1\n");
88: #else
89: printf("UCB_QUOTAS = 0\n");
90: #endif
91: #ifdef UCB_GRPMAST
92: printf("UCB_GRPMAST = 1\n");
93: #else
94: printf("UCB_GRPMAST = 0\n");
95: #endif
96: #ifdef UCB_PGRP
97: printf("UCB_PGRP = 1\n");
98: #else
99: printf("UCB_PGRP = 0\n");
100: #endif
101: #ifdef UCB_LOGIN
102: printf("UCB_LOGIN = 1\n");
103: #else
104: printf("UCB_LOGIN = 0\n");
105: #endif
106: #ifdef UCB_LOAD
107: printf("UCB_LOAD = 1\n");
108: #else
109: printf("UCB_LOAD = 0\n");
110: #endif
111: #ifdef UCB_METER
112: printf("UCB_METER = 1\n");
113: #else
114: printf("UCB_METER = 0\n");
115: #endif
116: #ifdef MENLO_OVLY
117: printf("MENLO_OVLY = 1\n");
118: #else
119: printf("MENLO_OVLY = 0\n");
120: #endif
121: #ifdef OLDTTY
122: printf("OLDTTY = 1\n");
123: #else
124: printf("OLDTTY = 0\n");
125: #endif
126: #ifdef UCB_NTTY
127: printf("UCB_NTTY = 1\n");
128: #else
129: printf("UCB_NTTY = 0\n");
130: #endif
131: #ifdef MENLO_JCL
132: printf("MENLO_JCL = 1\n");
133: #else
134: printf("MENLO_JCL = 0\n");
135: #endif
136: #ifdef VIRUS_VFORK
137: printf("VIRUS_VFORK = 1\n");
138: #else
139: printf("VIRUS_VFORK = 0\n");
140: #endif
141: #ifdef UCB_AUTOBOOT
142: printf("UCB_AUTOBOOT = 1\n");
143: #else
144: printf("UCB_AUTOBOOT = 0\n");
145: #endif
146: #if UCB_NKB==1
147: printf("UCB_NKB = 1\n");
148: #endif
149: #if UCB_NKB==2
150: printf("UCB_NKB = 2\n");
151: #endif
152: #ifndef UCB_NKB
153: printf("UCB_NKB = 0\n");
154: #endif
155: #ifdef UCB_CLIST
156: printf("UCB_CLIST = 1\n");
157: #else
158: printf("UCB_CLIST = 0\n");
159: #endif
160: #ifdef UCB_FRCSWAP
161: printf("UCB_FRCSWAP = 1\n");
162: #else
163: printf("UCB_FRCSWAP = 0\n");
164: #endif
165: #ifdef UCB_FSFIX
166: printf("UCB_FSFIX = 1\n");
167: #else
168: printf("UCB_FSFIX = 0\n");
169: #endif
170: #ifdef CGL_RTP
171: printf("CGL_RTP = 1\n");
172: #else
173: printf("CGL_RTP = 0\n");
174: #endif
175: #ifdef NOKA5
176: printf("NOKA5 = 1\n");
177: #else
178: printf("NOKA5 = 0\n");
179: #endif
180: #ifdef UCB_UPRINTF
181: printf("UCB_UPRINTF = 1\n");
182: #else
183: printf("UCB_UPRINTF = 0\n");
184: #endif
185: #ifdef UCB_DEVERR
186: printf("UCB_DEVERR = 1\n");
187: #else
188: printf("UCB_DEVERR = 0\n");
189: #endif
190: #ifdef UCB_VHANGUP
191: printf("UCB_VHANGUP = 1\n");
192: #else
193: printf("UCB_VHANGUP = 0\n");
194: #endif
195: #ifdef UNFAST
196: printf("UNFAST = 1\n");
197: #else
198: printf("UNFAST = 0\n");
199: #endif
200: #ifdef ACCT
201: printf("ACCT = 1\n");
202: #else
203: printf("ACCT = 0\n");
204: #endif
205: #ifdef INSECURE
206: printf("INSECURE = 1\n");
207: #else
208: printf("INSECURE = 0\n");
209: #endif
210: #ifdef MPX_FILS
211: printf("MPX_FILS = 1\n");
212: #else
213: printf("MPX_FILS = 0\n");
214: #endif
215: #ifdef DIAGNOSTIC
216: printf("DIAGNOSTIC = 1\n");
217: #else
218: printf("DIAGNOSTIC = 0\n");
219: #endif
220: #ifdef DISPLAY
221: printf("DISPLAY = 1\n");
222: #else
223: printf("DISPLAY = 0\n");
224: #endif
225:
226: printf("\n/ Tunable parameters (other than those in param.c)\n\n");
227: printf("MAXMEM = %d.\n", MAXMEM);
228: printf("MAXUPRC = %d.\n", MAXUPRC);
229: printf("SSIZE = %d.\n", SSIZE);
230: printf("SINCR = %d.\n", SINCR);
231: printf("NOFILE = %d.\n", NOFILE);
232: printf("CANBSIZ = %d.\n", CANBSIZ);
233: printf("MSGBUFS = %d.\n", MSGBUFS);
234: printf("NCARGS = %d.\n", NCARGS);
235:
236: exit(0);
237: }
Defined functions
main
defined in line
17;
never used