]> git.saurik.com Git - apple/xnu.git/blame - libsyscall/mach/err_kern.sub
xnu-4570.71.2.tar.gz
[apple/xnu.git] / libsyscall / mach / err_kern.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_kern.sub
33 * Author: Douglas Orr, Carnegie Mellon University
34 * Date: Mar, 1988
35 *
36 * error codes for Mach and Unix kernels
37 */
38
6d2010ae 39static const char * const err_codes_kern[] = {
2d21ac55
A
40 "(os/kern) successful", /* 0 */
41 "(os/kern) invalid address",
42 "(os/kern) protection failure",
43 "(os/kern) no space available",
44 "(os/kern) invalid argument",
45 "(os/kern) failure", /* 5 */
46 "(os/kern) resource shortage",
47 "(os/kern) not receiver",
48 "(os/kern) no access",
49 "(os/kern) memory failure",
50 "(os/kern) memory error", /* 10 */
51 "(os/kern) already in set",
52 "(os/kern) not in set",
53 "(os/kern) name exists",
54 "(os/kern) aborted",
55 "(os/kern) invalid name", /* 15 */
56 "(os/kern) invalid task",
57 "(os/kern) invalid right",
58 "(os/kern) invalid value",
59 "(os/kern) urefs overflow",
60 "(os/kern) invalid capability", /* 20 */
61 "(os/kern) right exists",
62 "(os/kern) invalid host",
63 "(os/kern) memory present",
64 "(os/kern) memory data moved",
65 "(os/kern) memory restart copy", /* 25 */
66 "(os/kern) invalid processor set",
67 "(os/kern) policy limit",
68 "(os/kern) invalid policy",
69 "(os/kern) invalid object",
70 "(os/kern) already waiting", /* 30 */
71 "(os/kern) default set",
72 "(os/kern) exception protected",
73 "(os/kern) invalid ledger",
74 "(os/kern) invalid memory control",
75 "(os/kern) invalid security", /* 35 */
76 "(os/kern) not depressed",
77 "(os/kern) object terminated",
78 "(os/kern) lock set destroyed",
79 "(os/kern) lock unstable",
80 "(os/kern) lock owned by another", /* 40 */
81 "(os/kern) lock owned by self",
82 "(os/kern) semaphore destroyed",
83 "(os/kern) RPC terminated",
84 "(os/kern) terminate orphan",
85 "(os/kern) let orphan continue", /* 45 */
86 "(os/kern) service not supported",
87 "(os/kern) remote node down",
4bd07ac2
A
88 "(os/kern) thread not waiting",
89 "(os/kern) operation timed out",
90 "(os/kern) code signing error", /* 50 */
91 "(os/kern) policy is static",
92 "(os/kern) insufficient input buffer size",
2d21ac55
A
93};
94
6d2010ae 95static const char * const err_codes_unix[] = {
2d21ac55
A
96 NO_SUCH_ERROR,
97 "(os/unix) no rights to object",
98 "(os/unix) file or directory does not exist",
99 "(os/unix) no such process",
100 "(os/unix) interrupted system call",
101 "(os/unix) i/o error",
102 "(os/unix) device does not exist",
103 "(os/unix) argument list is too long",
104 "(os/unix) invalid executable object format",
105 "(os/unix) bad file descriptor number",
106 "(os/unix) no child processes are present",
107 "(os/unix) no more processes are available",
108 "(os/unix) insufficient memory",
109 "(os/unix) access denied",
110 "(os/unix) memory access fault",
111 "(os/unix) block device required for operation",
112 "(os/unix) mount device busy",
113 "(os/unix) file already exists",
114 "(os/unix) cross device link",
115 "(os/unix) device does not exist",
116 "(os/unix) object is not a directory",
117 "(os/unix) object is a directory",
118 "(os/unix) invalid argument",
119 "(os/unix) internal file table overflow",
120 "(os/unix) maximum number of open files reached",
121 "(os/unix) object is not a tty-like device",
122 "(os/unix) executable object is in use",
123 "(os/unix) file is too large",
124 "(os/unix) no space is left on device",
125 "(os/unix) illegal seek attempt",
126 "(os/unix) read-only file system",
127 "(os/unix) too many links",
128 "(os/unix) broken pipe",
129 "(os/unix) argument is too large",
130 "(os/unix) result is out of range",
131 "(os/unix) operation on device would block",
132 "(os/unix) operation is now in progress",
133 "(os/unix) operation is already in progress",
134 "(os/unix) socket operation attempted on non-socket object",
135 "(os/unix) destination address is required",
136 "(os/unix) message is too long",
137 "(os/unix) protocol type is incorrect for socket",
138 "(os/unix) protocol type is not availaible",
139 "(os/unix) protocol type is not supported",
140 "(os/unix) socket type is not supported",
141 "(os/unix) operation is not supported on sockets",
142 "(os/unix) protocol family is not supported",
143 "(os/unix) address family is not supported by protocol family",
144 "(os/unix) address is already in use",
145 "(os/unix) can't assign requested address",
146 "(os/unix) network is down",
147 "(os/unix) network is unreachable",
148 "(os/unix) network dropped connection on reset",
149 "(os/unix) software aborted connection",
150 "(os/unix) connection reset by peer",
151 "(os/unix) no buffer space is available",
152 "(os/unix) socket is already connected",
153 "(os/unix) socket is not connected",
154 "(os/unix) can't send after socket shutdown",
155 "(os/unix) too many references; can't splice",
156 "(os/unix) connection timed out",
157 "(os/unix) connection was refused",
158 "(os/unix) too many levels of symbolic links",
159 "(os/unix) file name exceeds system maximum limit",
160 "(os/unix) host is down",
161 "(os/unix) there is no route to host",
162 "(os/unix) directory is not empty",
163 "(os/unix) quota on number of processes exceeded",
164 "(os/unix) quota on number of users exceeded",
165 "(os/unix) quota on available disk space exceeded",
166};
167
168static const struct error_subsystem err_os_sub[] = {
169 {
170 "(os/kern)",
171 errlib_count(err_codes_kern),
172 err_codes_kern,
173 },
174 {
175 "(os/?)",
176 0,
177 },
178 {
179 "(os/?)",
180 0,
181 },
182 {
183 "(os/unix)",
184 errlib_count(err_codes_unix),
185 err_codes_unix,
186 },
187};