]> git.saurik.com Git - apple/xnu.git/blob - libsyscall/mach/err_ipc.sub
xnu-4903.241.1.tar.gz
[apple/xnu.git] / libsyscall / mach / err_ipc.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_ipc.sub
33 * Author: Douglas Orr, Carnegie Mellon University
34 * Date: Mar, 1988
35 *
36 * Definitions of error strings for original IPC
37 */
38
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 */
52 };
53
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 */
64 };
65
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 */
75 };
76
77 /* err_ipc subsystems */
78 static const struct error_subsystem err_ipc_sub[] = {
79 /* ipc/0; */
80 {
81 "(ipc/send)",
82 errlib_count(err_codes_send),
83 err_codes_send,
84 },
85 /* ipc/1; */
86 {
87 "(ipc/rcv)",
88 errlib_count(err_codes_rcv),
89 err_codes_rcv,
90
91 },
92 /* ipc/2 */
93 {
94 "(ipc/mig)",
95 errlib_count(err_codes_mig),
96 err_codes_mig,
97 },
98 };