2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16 * Carnegie Mellon requests users of this software to return to
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
23 * any improvements or extensions that they make and grant Carnegie the
24 * rights to redistribute these changes.
29 * Revision 1.1 1992/10/06 18:29:52 roland
32 * Revision 2.2 92/01/16 00:08:40 rpd
33 * Moved from user collection to mk collection.
35 * Revision 2.2 91/03/27 16:05:16 mrt
42 * Author: Douglas Orr, Carnegie Mellon University
45 * Definitions of error strings for original IPC
48 static char * err_codes_send[] = {
49 "(ipc/send) unknown error", /* -100 */
50 "(ipc/send) invalid memory", /* -101 */
51 "(ipc/send) invalid port", /* -102 */
52 "(ipc/send) timed out", /* -103 */
53 "(ipc/send) unused error", /* -104 */
54 "(ipc/send) will notify", /* -105 */
55 "(ipc/send) notify in progress", /* -106 */
56 "(ipc/send) kernel refused message", /* -107 */
57 "(ipc/send) send interrupted", /* -108 */
58 "(ipc/send) send message too large", /* -109 */
59 "(ipc/send) send message too small", /* -110 */
60 "(ipc/send) message size changed while being copied", /* -111 */
63 static char * err_codes_rcv[] = {
64 "(ipc/rcv) unknown error", /* -200 */
65 "(ipc/rcv) invalid memory", /* -201 */
66 "(ipc/rcv) invalid port", /* -202 */
67 "(ipc/rcv) receive timed out", /* -203 */
68 "(ipc/rcv) message too large", /* -204 */
69 "(ipc/rcv) no space for message data", /* -205 */
70 "(ipc/rcv) only sender remaining", /* -206 */
71 "(ipc/rcv) receive interrupted", /* -207 */
72 "(ipc/rcv) port receiver changed or port became enabled", /* -208 */
75 static char * err_codes_mig[] = {
76 "(ipc/mig) type check failure in message interface", /* 0 (-300) */
77 "(ipc/mig) wrong return message ID", /* 1 */
78 "(ipc/mig) server detected error", /* 2 */
79 "(ipc/mig) bad message ID", /* 3 */
80 "(ipc/mig) server found wrong arguments", /* 4 */
81 "(ipc/mig) no reply should be sent", /* 5 */
82 "(ipc/mig) server raised exception", /* 6 */
83 "(ipc/mig) user specified array not large enough for return info", /* 7 */
86 /* err_ipc subsystems */
87 static struct error_subsystem err_ipc_sub[] = {
91 errlib_count(err_codes_send),
97 errlib_count(err_codes_rcv),
104 errlib_count(err_codes_mig),