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.
33 * Author: Douglas Orr, Carnegie Mellon University
36 * Definitions of error strings for original IPC
39 static const char * const err_codes_send[] = {
40 "(ipc/send) unknown error", /* -100 */
41 "(ipc/send) invalid memory", /* -101 */
42 "(ipc/send) invalid port", /* -102 */
43 "(ipc/send) timed out", /* -103 */
44 "(ipc/send) unused error", /* -104 */
45 "(ipc/send) will notify", /* -105 */
46 "(ipc/send) notify in progress", /* -106 */
47 "(ipc/send) kernel refused message", /* -107 */
48 "(ipc/send) send interrupted", /* -108 */
49 "(ipc/send) send message too large", /* -109 */
50 "(ipc/send) send message too small", /* -110 */
51 "(ipc/send) message size changed while being copied", /* -111 */
54 static const char * const err_codes_rcv[] = {
55 "(ipc/rcv) unknown error", /* -200 */
56 "(ipc/rcv) invalid memory", /* -201 */
57 "(ipc/rcv) invalid port", /* -202 */
58 "(ipc/rcv) receive timed out", /* -203 */
59 "(ipc/rcv) message too large", /* -204 */
60 "(ipc/rcv) no space for message data", /* -205 */
61 "(ipc/rcv) only sender remaining", /* -206 */
62 "(ipc/rcv) receive interrupted", /* -207 */
63 "(ipc/rcv) port receiver changed or port became enabled", /* -208 */
66 static const char * const err_codes_mig[] = {
67 "(ipc/mig) type check failure in message interface", /* 0 (-300) */
68 "(ipc/mig) wrong return message ID", /* 1 */
69 "(ipc/mig) server detected error", /* 2 */
70 "(ipc/mig) bad message ID", /* 3 */
71 "(ipc/mig) server found wrong arguments", /* 4 */
72 "(ipc/mig) no reply should be sent", /* 5 */
73 "(ipc/mig) server raised exception", /* 6 */
74 "(ipc/mig) user specified array not large enough for return info", /* 7 */
77 /* err_ipc subsystems */
78 static const struct error_subsystem err_ipc_sub[] = {
82 errlib_count(err_codes_send),
88 errlib_count(err_codes_rcv),
95 errlib_count(err_codes_mig),