6 * Mach Operating System
7 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
10 * Permission to use, copy, modify and distribute this software and its
11 * documentation is hereby granted, provided that both the copyright
12 * notice and this permission notice appear in all copies of the
13 * software, derivative works or modified versions, and any portions
14 * thereof, and that both notices appear in supporting documentation.
16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
18 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
20 * Carnegie Mellon requests users of this software to return to
22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23 * School of Computer Science
24 * Carnegie Mellon University
25 * Pittsburgh PA 15213-3890
27 * any improvements or extensions that they make and grant Carnegie the
28 * rights to redistribute these changes.
32 * File: err_server.sub
33 * Author: Douglas Orr, Carnegie Mellon University
36 * Definitions of Servers error strings
39 static const char * err_codes_netname[] = { /* 0 */
40 "(server/netname) name is not yours",
41 "(server/netname) name not checked in",
42 "(server/netname) no such host",
43 "(server/netname) host not found",
45 static const char * err_codes_env_mgr[] = { /* 1 */
47 "(server/env_mgr) variable not found",
48 "(server/env_mgr) wrong type of variable",
49 "(server/env_mgr) unknown port",
50 "(server/env_mgr) read only environment",
51 "(server/env_mgr) no more connections available",
52 "(server/env_mgr) port table full",
53 "(server/env_mgr) attempting to enter a null port ",
55 static const char * err_codes_execd[] = { /* 2 */
57 "(server/execd) could not find file to run",
58 "(server/execd) userid or password incorrect",
59 "(server/execd) fork failed",
61 static const char * err_codes_netmemory[] = { /* 3 */
62 "(server/netmemory) successful",
63 "(server/netmemory) invalid argument",
64 "(server/netmemory) resource shortage",
66 static const char * err_codes_ufs[] = { /* 4 */
68 /* XXX "(server/ufs) invalid port", */
71 static const char * err_codes_task_master[] = { /* 5 */
72 "(server/task_master) GENERIC ERROR",
73 "(server/task_master) invalid tm_task port",
74 "(server/task_master) invalid task id",
75 "(server/task_master) invalid kernel port",
76 "(server/task_master) invalid job group",
77 "(server/task_master) invalid action",
80 static const char * err_codes_ns[] = { /* 6 */
81 "(server/ns) GENERIC ERROR",
82 "(server/ns) invalid handle",
83 "(server/ns) name not found",
84 "(server/ns) name already exists",
85 "(server/ns) name too long",
86 "(server/ns) path too long",
87 "(server/ns) invalid name",
88 "(server/ns) not a directory",
89 "(server/ns) is a directory",
90 "(server/ns) directory not empty",
91 "(server/ns) infinite retry loop in resolver",
92 "(server/ns) infinite forwarding loop in resolver",
93 "(server/ns) invalid prefix",
94 "(server/ns) prefix table overflow",
95 "(server/ns) bad format for directory",
96 "(server/ns) unknown entry type",
97 "(server/ns) invalid generation",
98 "(server/ns) entry not reserved",
101 static const char * err_codes_io[] = { /* 7 */
102 "(server/io) GENERIC ERROR",
103 "(server/io) invalid offset",
104 "(server/io) invalid size",
105 "(server/io) invalid mode",
106 "(server/io) invalid strategy",
107 "(server/io) operation rejected under current I/O strategy",
110 static const char * err_codes_auth[] = { /* 8 */
111 "(server/auth) GENERIC ERROR",
112 "(server/auth) bad private port",
113 "(server/auth) bad name",
114 "(server/auth) not primary",
115 "(server/auth) bad pauthsword",
116 "(server/auth) bad group",
117 "(server/auth) duplicate id",
118 "(server/auth) duplicate name",
119 "(server/auth) not secondary",
122 static const char * err_codes_us[] = { /* 9 */
123 "(server/us) GENERIC ERROR",
124 "(server/us) unknown error",
125 "(server/us) object not found",
126 "(server/us) object exists",
127 "(server/us) object busy",
128 "(server/us) object not started",
129 "(server/us) object dead",
130 "(server/us) invalid args",
131 "(server/us) invalid access",
132 "(server/us) invalid format",
133 "(server/us) invalid buffer size",
134 "(server/us) access denied",
135 "(server/us) resource exhausted",
136 "(server/us) quota exceeded",
137 "(server/us) limit exceeded",
138 "(server/us) not implemented",
139 "(server/us) not supported",
140 "(server/us) hardware error",
141 "(server/us) retry required",
142 "(server/us) not authenticated",
143 "(server/us) exclusive access",
144 "(server/us) timeout",
145 "(server/us) bad reference count",
146 "(server/us) internal error",
149 static const char * err_codes_sunrpc[] = { /* 10 */
150 "(server/sunrpc) GENERIC ERROR",
151 "(server/sunrpc) cannot encode arguments",
152 "(server/sunrpc) cannot decode results",
153 "(server/sunrpc) failure in sending call",
154 "(server/sunrpc) failure in receiving result",
155 "(server/sunrpc) call timed out",
156 "(server/sunrpc) rpc versions not compatible",
157 "(server/sunrpc) authentication error",
158 "(server/sunrpc) program not available",
159 "(server/sunrpc) program version mismatched",
160 "(server/sunrpc) procedure unavailable",
161 "(server/sunrpc) decode arguments error",
162 "(server/sunrpc) generic other problem",
163 "(server/sunrpc) unknown host name",
164 "(server/sunrpc) portmapper failed",
165 "(server/sunrpc) remote program not registered",
166 "(server/sunrpc) unspecified error",
167 "(server/sunrpc) unknown protocol",
170 static const char * err_codes_machobj[] = { /* 11 */
171 "(server/object system) GENERIC ERROR",
172 "(server/object system) object not found",
173 "(server/object system) no such operation",
174 "(server/object system) undefined ipc method arguments",
175 "(server/object system) too many arguments to method",
176 "(server/object system) bad ipc message format",
179 static const char * err_codes_loader[] = { /* 12 */
180 "(server/loader) GENERIC ERROR",
181 "(server/loader) object file not relocated",
182 "(server/loader) unknown file type",
183 "(server/loader) symbol not found",
184 "(server/loader) symbol multiply defined",
185 "(server/loader) memory region overlap",
189 static const char * err_codes_exception[] = { /* 13 */
190 "(server/exception) GENERIC ERROR",
191 "(server/exception) invalid access",
192 "(server/exception) invalid instruction",
193 "(server/exception) arithmetic exception",
194 "(server/exception) emulation exception",
195 "(server/exception) software exception",
196 "(server/exception) breakpoint exception",
199 static const char * err_codes_ux_signal[] = { /* 14 */
200 "(server/unix-signal) GENERIC ERROR",
201 "(server/unix-signal) hangup",
202 "(server/unix-signal) interrupt",
203 "(server/unix-signal) quit",
204 "(server/unix-signal) undefined",
205 "(server/unix-signal) undefined",
206 "(server/unix-signal) undefined",
207 "(server/unix-signal) undefined",
208 "(server/unix-signal) kill",
209 "(server/unix-signal) undefined",
210 "(server/unix-signal) undefined",
211 "(server/unix-signal) system error",
212 "(server/unix-signal) pipe signal",
213 "(server/unix-signal) alarm",
214 "(server/unix-signal) terminate",
215 "(server/unix-signal) urgent i/o",
216 "(server/unix-signal) stop",
217 "(server/unix-signal) terminal stop",
218 "(server/unix-signal) continue",
219 "(server/unix-signal) child death",
220 "(server/unix-signal) tty input",
221 "(server/unix-signal) tty output",
222 "(server/unix-signal) i/o signal",
223 "(server/unix-signal) cpu time limit exceeded",
224 "(server/unix-signal) file size exceeded",
225 "(server/unix-signal) virtual alarm",
226 "(server/unix-signal) profile signal",
227 "(server/unix-signal) window size change",
228 "(server/unix-signal) user-defined signal 1",
229 "(server/unix-signal) user-defined signal 2",
232 static const char * err_codes_xkernel[] = { /* 15 */
233 "(server/xkernel) GENERIC ERROR",
234 "(server/xkernel) map full",
235 "(server/xkernel) inconsistent bind",
236 "(server/xkernel) cannot resolve",
237 "(server/xkernel) cannot unbind",
238 "(server/xkernel) invalid type",
239 "(server/xkernel) invalid opcode",
240 "(server/xkernel) buffer too small",
241 "(server/xkernel) invalid ev code",
242 "(server/xkernel) event not registered",
243 "(server/xkernel) invalid open",
244 "(server/xkernel) already open",
245 "(server/xkernel) bad addr",
249 /* err_server subsystems */
250 static struct error_subsystem err_server_sub[] = {
253 (char *)"(server/netname)",
254 errlib_count(err_codes_netname),
255 (char **)err_codes_netname,
259 (char *)"(server/env_mgr)",
260 errlib_count(err_codes_env_mgr),
261 (char **)err_codes_env_mgr,
265 (char *)"(server/execd)",
266 errlib_count(err_codes_execd),
267 (char **)err_codes_execd,
271 (char *)"(server/netmemory)",
272 errlib_count(err_codes_netmemory),
273 (char **)err_codes_netmemory,
277 (char *)"(server/ufs)",
278 errlib_count(err_codes_ufs),
279 (char **)err_codes_ufs,
283 (char *)"(server/task_master)",
284 errlib_count(err_codes_task_master),
285 (char **)err_codes_task_master,
289 (char *)"(server/ns)",
290 errlib_count(err_codes_ns),
291 (char **)err_codes_ns,
294 /* server/7; i/o subsystem */
296 (char *)"(server/io)",
297 errlib_count(err_codes_io),
298 (char **)err_codes_io,
301 /* server/8; authentication server */
303 (char *)"(server/auth)",
304 errlib_count(err_codes_auth),
305 (char **)err_codes_auth,
308 /* server/9; generic US system */
310 (char *)"(server/us)",
311 errlib_count(err_codes_us),
312 (char **)err_codes_us,
315 /* server/10; SUN RPC package */
317 (char *)"(server/sunrpc)",
318 errlib_count(err_codes_sunrpc),
319 (char **)err_codes_sunrpc,
322 /* server/11; MachObject system */
324 (char *)"(server/object system)",
325 errlib_count(err_codes_machobj),
326 (char **)err_codes_machobj,
329 /* server/12; loader */
331 (char *)"(server/loader)",
332 errlib_count(err_codes_loader),
333 (char **)err_codes_loader,
336 /* server/13; mach exception */
338 (char *)"(server/exception)",
339 errlib_count(err_codes_exception),
340 (char **)err_codes_exception,
343 /* server/14; unix signal */
345 (char *)"(server/unix-signal)",
346 errlib_count(err_codes_ux_signal),
347 (char **)err_codes_ux_signal,
350 /* server/15; xkernel */
352 (char *)"(server/xkernel)",
353 errlib_count(err_codes_xkernel),
354 (char **)err_codes_xkernel,