xref: /trueos/lib/libmach/mach/err_ipc.sub (revision f2f653d61580d6639d1a7f839ad31ea61de7e4db)
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 * Mach Operating System
23 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
24 * All Rights Reserved.
25 *
26 * Permission to use, copy, modify and distribute this software and its
27 * documentation is hereby granted, provided that both the copyright
28 * notice and this permission notice appear in all copies of the
29 * software, derivative works or modified versions, and any portions
30 * thereof, and that both notices appear in supporting documentation.
31 *
32 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
33 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
34 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
35 *
36 * Carnegie Mellon requests users of this software to return to
37 *
38 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
39 *  School of Computer Science
40 *  Carnegie Mellon University
41 *  Pittsburgh PA 15213-3890
42 *
43 * any improvements or extensions that they make and grant Carnegie the
44 * rights to redistribute these changes.
45 */
46/*
47 * MkLinux
48 */
49/*
50 *	File:	err_ipc.sub
51 *	Author:	Douglas Orr, Carnegie Mellon University
52 *	Date:	Mar, 1988
53 *
54 *	Definitions of error strings for original IPC
55 */
56
57static const char * err_codes_send[] = {
58	"(ipc/send) unknown error",		/* -100 */
59	"(ipc/send) invalid memory",		/* -101 */
60	"(ipc/send) invalid port",		/* -102 */
61	"(ipc/send) timed out",			/* -103 */
62	"(ipc/send) unused error",		/* -104 */
63	"(ipc/send) will notify",		/* -105 */
64	"(ipc/send) notify in progress",	/* -106 */
65	"(ipc/send) kernel refused message",	/* -107 */
66	"(ipc/send) send interrupted",		/* -108 */
67	"(ipc/send) send message too large",	/* -109 */
68	"(ipc/send) send message too small",	/* -110 */
69	"(ipc/send) message size changed while being copied",	/* -111 */
70};
71
72static const char * err_codes_rcv[] = {
73	"(ipc/rcv) unknown error",			/* -200 */
74	"(ipc/rcv) invalid memory",			/* -201 */
75	"(ipc/rcv) invalid port",			/* -202 */
76	"(ipc/rcv) receive timed out",			/* -203 */
77	"(ipc/rcv) message too large",			/* -204 */
78	"(ipc/rcv) no space for message data",		/* -205 */
79	"(ipc/rcv) only sender remaining",		/* -206 */
80	"(ipc/rcv) receive interrupted",		/* -207 */
81	"(ipc/rcv) port receiver changed or port became enabled", /* -208 */
82};
83
84static const char 	* err_codes_mig[] = {
85	"(ipc/mig) type check failure in message interface",	/* 0 (-300) */
86	"(ipc/mig) wrong return message ID",			/* 1 */
87	"(ipc/mig) server detected error",			/* 2 */
88	"(ipc/mig) bad message ID",				/* 3 */
89	"(ipc/mig) server found wrong arguments",		/* 4 */
90	"(ipc/mig) no reply should be sent",			/* 5 */
91	"(ipc/mig) server raised exception",			/* 6 */
92	"(ipc/mig) user specified array not large enough for return info",	/* 7 */
93};
94
95/*	err_ipc subsystems      	*/
96static struct error_subsystem err_ipc_sub[] = {
97	/* ipc/0; */
98	{
99		"(ipc/send)",
100		errlib_count(err_codes_send),
101		err_codes_send,
102	},
103	/* ipc/1; */
104	{
105		"(ipc/rcv)",
106		errlib_count(err_codes_rcv),
107		err_codes_rcv,
108
109	},
110	/* ipc/2 */
111	{
112		"(ipc/mig)",
113		errlib_count(err_codes_mig),
114		err_codes_mig,
115	},
116
117};
118