xref: /NextBSD/usr.bin/migcom/global.h (revision 33da5adc555b3bc29986eeadca03829e4ad06b1e)
1 /*
2  * Copyright 1991-1998 by Open Software Foundation, Inc.
3  *              All Rights Reserved
4  *
5  * Permission to use, copy, modify, and distribute this software and
6  * its documentation for any purpose and without fee is hereby granted,
7  * provided that the above copyright notice appears in all copies and
8  * that both the copyright notice and this permission notice appear in
9  * supporting documentation.
10  *
11  * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
12  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13  * FOR A PARTICULAR PURPOSE.
14  *
15  * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
16  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
18  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
19  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20  */
21 /*
22  * cmk1.1
23  */
24 /*
25  * Mach Operating System
26  * Copyright (c) 1991,1990 Carnegie Mellon University
27  * All Rights Reserved.
28  *
29  * Permission to use, copy, modify and distribute this software and its
30  * documentation is hereby granted, provided that both the copyright
31  * notice and this permission notice appear in all copies of the
32  * software, derivative works or modified versions, and any portions
33  * thereof, and that both notices appear in supporting documentation.
34  *
35  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
36  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
37  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
38  *
39  * Carnegie Mellon requests users of this software to return to
40  *
41  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
42  *  School of Computer Science
43  *  Carnegie Mellon University
44  *  Pittsburgh PA 15213-3890
45  *
46  * any improvements or extensions that they make and grant Carnegie the
47  * rights to redistribute these changes.
48  */
49 /*
50  * 91/08/28  11:16:56  jsb
51  * 	Replaced ServerProcName with ServerDemux.
52  * 	[91/08/13            rpd]
53  *
54  * 	Removed Camelot and TrapRoutine support.
55  * 	Changed MsgKind to MsgSeqno.
56  * 	[91/08/12            rpd]
57  *
58  * 91/06/26  14:39:32  rpd
59  * 	Removed InitRoutineName.
60  * 	[91/06/26            rpd]
61  *
62  * 91/06/25  10:31:12  rpd
63  * 	Added ServerHeaderFileName.
64  * 	[91/05/22            rpd]
65  *
66  * 91/02/05  17:54:29  mrt
67  * 	Changed to new Mach copyright
68  * 	[91/02/01  17:54:12  mrt]
69  *
70  * 90/06/19  23:00:54  rpd
71  * 	Added UserFilePrefix.
72  * 	[90/06/03            rpd]
73  *
74  * 90/06/02  15:04:42  rpd
75  * 	Created for new IPC.
76  * 	[90/03/26  21:10:53  rpd]
77  *
78  * 07-Apr-89  Richard Draves (rpd) at Carnegie-Mellon University
79  *	Extensive revamping.  Added polymorphic arguments.
80  *	Allow multiple variable-sized inline arguments in messages.
81  *
82  * 17-Sep-87  Bennet Yee (bsy) at Carnegie-Mellon University
83  *	Added GenSymTab
84  *
85  * 16-Aug-87  Mary Thompson (mrt) at Carnegie-Mellon University
86  *	Added CamelotPrefix
87  *
88  * 28-May-87  Richard Draves (rpd) at Carnegie-Mellon University
89  *	Created.
90  */
91 
92 #ifndef _GLOBAL_H
93 #define _GLOBAL_H
94 
95 #include "type.h"
96 
97 #ifndef FALSE
98 #define FALSE 0
99 #endif
100 
101 #ifndef TRUE
102 #define TRUE 1
103 #endif
104 extern boolean_t BeQuiet;   /* no warning messages */
105 extern boolean_t BeVerbose; /* summarize types, routines */
106 extern boolean_t BeDebug;   /* enters in the debug mode */
107 extern boolean_t UseMsgRPC;
108 extern boolean_t GenSymTab;
109 extern boolean_t UseEventLogger;
110 extern boolean_t BeAnsiC;
111 extern boolean_t CheckNDR;
112 extern boolean_t PackMsg;
113 extern boolean_t UseSplitHeaders;
114 extern boolean_t ShortCircuit;
115 extern boolean_t UseRPCTrap;
116 extern boolean_t TestRPCTrap;
117 extern boolean_t IsVoucherCodeAllowed;
118 
119 extern boolean_t IsKernelUser;
120 extern boolean_t IsKernelServer;
121 
122 extern string_t RCSId;
123 
124 extern string_t SubsystemName;
125 extern u_int SubsystemBase;
126 
127 extern string_t MsgOption;
128 extern string_t WaitTime;
129 extern string_t SendTime;
130 extern string_t ErrorProc;
131 extern string_t ServerPrefix;
132 extern string_t UserPrefix;
133 extern string_t ServerDemux;
134 extern string_t ServerImpl;
135 extern string_t ServerSubsys;
136 extern int MaxMessSizeOnStack;
137 extern int UserTypeLimit;
138 
139 extern int yylineno;
140 extern string_t yyinname;
141 
142 extern void init_global(void);
143 
144 extern string_t UserFilePrefix;
145 extern string_t UserHeaderFileName;
146 extern string_t ServerHeaderFileName;
147 extern string_t InternalHeaderFileName;
148 extern string_t DefinesHeaderFileName;
149 extern string_t UserFileName;
150 extern string_t ServerFileName;
151 extern string_t GenerationDate;
152 
153 extern void more_global(void);
154 
155 extern char NewCDecl[];
156 extern char LintLib[];
157 
158 #endif  /* _GLOBAL_H */
159