]> git.saurik.com Git - apple/xnu.git/blame - libsyscall/mach/err_mach_ipc.sub
xnu-6153.81.5.tar.gz
[apple/xnu.git] / libsyscall / mach / err_mach_ipc.sub
CommitLineData
2d21ac55
A
1/*
2 * @OSF_COPYRIGHT@
3 */
4
5/*
6 * Mach Operating System
7 * Copyright (c) 1991,1990,1989 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_mach_ipc.sub
33 * Author: Richard Draves, Carnegie Mellon University
34 * Date: Jan, 1990
35 *
36 * Error string definitions for the new Mach IPC
37 */
38
6d2010ae 39static const char * const err_codes_mach_send[] = {
2d21ac55
A
40 /* 0 */ "(ipc/send) no error",
41 /* 1 */ "(ipc/send) send in progress",
42 /* 2 */ "(ipc/send) invalid data",
43 /* 3 */ "(ipc/send) invalid destination port",
44 /* 4 */ "(ipc/send) timed out",
fe8ab488
A
45 /* 5 */ "(ipc/send) invalid voucher",
46 /* 6 */ "(ipc/send) unused error",
2d21ac55
A
47 /* 7 */ "(ipc/send) interrupted",
48 /* 8 */ "(ipc/send) msg too small",
49 /* 9 */ "(ipc/send) invalid reply port",
50 /* 10 */ "(ipc/send) invalid port right",
51 /* 11 */ "(ipc/send) invalid notify port",
52 /* 12 */ "(ipc/send) invalid memory",
53 /* 13 */ "(ipc/send) no msg buffer",
fe8ab488 54 /* 14 */ "(ipc/send) msg too large",
2d21ac55
A
55 /* 15 */ "(ipc/send) invalid msg-type",
56 /* 16 */ "(ipc/send) invalid msg-header",
57 /* 17 */ "(ipc/send) invalid msg-trailer",
cb323159 58 /* 18 */ "(ipc/send) invalid context for reply",
fe8ab488
A
59 /* 19 */ "(ipc/send) unused error",
60 /* 20 */ "(ipc/send) unused error",
2d21ac55 61 /* 21 */ "(ipc/send) out-of-line buffer too large",
cb323159 62 /* 22 */ "(ipc/send) destination does not accept OOL ports",
2d21ac55
A
63};
64
6d2010ae 65static const char * const err_codes_mach_rcv[] = {
2d21ac55
A
66 /* 0 */ "(ipc/rcv) no error",
67 /* 1 */ "(ipc/rcv) receive in progress",
68 /* 2 */ "(ipc/rcv) invalid name",
69 /* 3 */ "(ipc/rcv) timed out",
70 /* 4 */ "(ipc/rcv) msg too large",
71 /* 5 */ "(ipc/rcv) interrupted",
72 /* 6 */ "(ipc/rcv) port changed",
73 /* 7 */ "(ipc/rcv) invalid notify port",
74 /* 8 */ "(ipc/rcv) invalid data",
75 /* 9 */ "(ipc/rcv) port died",
76 /* 10 */ "(ipc/rcv) port in set",
77 /* 11 */ "(ipc/rcv) header error",
78 /* 12 */ "(ipc/rcv) body error",
79 /* 13 */ "(ipc/rcv) invalid scatter list entry",
80 /* 14 */ "(ipc/rcv) overwrite region too small",
81 /* 15 */ "(ipc/rcv) invalid msg-trailer",
82 /* 16 */ "(ipc/rcv) DIPC transport error",
83};
84
6d2010ae 85static const char * const err_codes_mach_mig[] = {
2d21ac55
A
86 /* 0 */ "(ipc/mig) client type check failure",
87 /* 1 */ "(ipc/mig) wrong reply message ID",
88 /* 2 */ "(ipc/mig) server detected error",
89 /* 3 */ "(ipc/mig) bad request message ID",
90 /* 4 */ "(ipc/mig) server type check failure",
91 /* 5 */ "(ipc/mig) no reply should be sent",
92 /* 6 */ "(ipc/mig) server raised exception",
93 /* 7 */ "(ipc/mig) array not large enough",
94 /* 8 */ "(ipc/mig) server died",
95 /* 9 */ "(ipc/mig) unknown trailer format",
96};
97
98/* err_mach_ipc subsystems */
99static const struct error_subsystem err_mach_ipc_sub[] = {
100 /* ipc/0; */
101 {
102 "(ipc/send)",
103 errlib_count(err_codes_mach_send),
104 err_codes_mach_send,
105 },
106 /* ipc/1; */
107 {
108 "(ipc/rcv)",
109 errlib_count(err_codes_mach_rcv),
110 err_codes_mach_rcv,
111
112 },
113 /* ipc/2 */
114 {
115 "(ipc/mig)",
116 errlib_count(err_codes_mach_mig),
117 err_codes_mach_mig,
118 },
119
120};