]> git.saurik.com Git - apple/xnu.git/blob - libsyscall/mach/err_server.sub
xnu-3248.60.10.tar.gz
[apple/xnu.git] / libsyscall / mach / err_server.sub
1 /*
2 * @OSF_COPYRIGHT@
3 */
4
5 /*
6 * Mach Operating System
7 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
8 * All Rights Reserved.
9 *
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.
15 *
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.
19 *
20 * Carnegie Mellon requests users of this software to return to
21 *
22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23 * School of Computer Science
24 * Carnegie Mellon University
25 * Pittsburgh PA 15213-3890
26 *
27 * any improvements or extensions that they make and grant Carnegie the
28 * rights to redistribute these changes.
29 */
30
31 /*
32 * File: err_server.sub
33 * Author: Douglas Orr, Carnegie Mellon University
34 * Date: Mar, 1988
35 *
36 * Definitions of Servers error strings
37 */
38
39 static const char * const 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",
44 };
45 static const char * const err_codes_env_mgr[] = { /* 1 */
46 NO_SUCH_ERROR,
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 ",
54 };
55 static const char * const err_codes_execd[] = { /* 2 */
56 NO_SUCH_ERROR,
57 "(server/execd) could not find file to run",
58 "(server/execd) userid or password incorrect",
59 "(server/execd) fork failed",
60 };
61 static const char * const err_codes_netmemory[] = { /* 3 */
62 "(server/netmemory) successful",
63 "(server/netmemory) invalid argument",
64 "(server/netmemory) resource shortage",
65 };
66 static const char * const err_codes_ufs[] = { /* 4 */
67 NO_SUCH_ERROR,
68 /* XXX "(server/ufs) invalid port", */
69 };
70
71 static const char * const 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",
78 };
79
80 static const char * const 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",
99 };
100
101 static const char * const 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",
108 };
109
110 static const char * const 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",
120 };
121
122 static const char * const 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",
147 };
148
149 static const char * const 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",
168 };
169
170 static const char * const 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",
177 };
178
179 static const char * const 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",
186 };
187
188
189 static const char * const 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",
197 };
198
199 static const char * const 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",
230 };
231
232 static const char * const 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",
246 };
247
248
249 /* err_server subsystems */
250 static const struct error_subsystem err_server_sub[] = {
251 /* server/0; */
252 {
253 "(server/netname)",
254 errlib_count(err_codes_netname),
255 err_codes_netname,
256 },
257 /* server/1; */
258 {
259 "(server/env_mgr)",
260 errlib_count(err_codes_env_mgr),
261 err_codes_env_mgr,
262 },
263 /* server/2; */
264 {
265 "(server/execd)",
266 errlib_count(err_codes_execd),
267 err_codes_execd,
268 },
269 /* server/3; */
270 {
271 "(server/netmemory)",
272 errlib_count(err_codes_netmemory),
273 err_codes_netmemory,
274 },
275 /* server/4; */
276 {
277 "(server/ufs)",
278 errlib_count(err_codes_ufs),
279 err_codes_ufs,
280 },
281 /* server/5; */
282 {
283 "(server/task_master)",
284 errlib_count(err_codes_task_master),
285 err_codes_task_master,
286 },
287 /* server/6; */
288 {
289 "(server/ns)",
290 errlib_count(err_codes_ns),
291 err_codes_ns,
292 },
293
294 /* server/7; i/o subsystem */
295 {
296 "(server/io)",
297 errlib_count(err_codes_io),
298 err_codes_io,
299 },
300
301 /* server/8; authentication server */
302 {
303 "(server/auth)",
304 errlib_count(err_codes_auth),
305 err_codes_auth,
306 },
307
308 /* server/9; generic US system */
309 {
310 "(server/us)",
311 errlib_count(err_codes_us),
312 err_codes_us,
313 },
314
315 /* server/10; SUN RPC package */
316 {
317 "(server/sunrpc)",
318 errlib_count(err_codes_sunrpc),
319 err_codes_sunrpc,
320 },
321
322 /* server/11; MachObject system */
323 {
324 "(server/object system)",
325 errlib_count(err_codes_machobj),
326 err_codes_machobj,
327 },
328
329 /* server/12; loader */
330 {
331 "(server/loader)",
332 errlib_count(err_codes_loader),
333 err_codes_loader,
334 },
335
336 /* server/13; mach exception */
337 {
338 "(server/exception)",
339 errlib_count(err_codes_exception),
340 err_codes_exception,
341 },
342
343 /* server/14; unix signal */
344 {
345 "(server/unix-signal)",
346 errlib_count(err_codes_ux_signal),
347 err_codes_ux_signal,
348 },
349
350 /* server/15; xkernel */
351 {
352 "(server/xkernel)",
353 errlib_count(err_codes_xkernel),
354 err_codes_xkernel,
355 },
356
357 };