]>
Commit | Line | Data |
---|---|---|
6d52618b | 1 | /* |
28f540f4 RM |
2 | * Mach Operating System |
3 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University | |
4 | * All Rights Reserved. | |
6d52618b | 5 | * |
28f540f4 RM |
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. | |
6d52618b UD |
11 | * |
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS | |
28f540f4 RM |
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR |
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
6d52618b | 15 | * |
28f540f4 | 16 | * Carnegie Mellon requests users of this software to return to |
6d52618b | 17 | * |
28f540f4 RM |
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU |
19 | * School of Computer Science | |
20 | * Carnegie Mellon University | |
21 | * Pittsburgh PA 15213-3890 | |
6d52618b | 22 | * |
28f540f4 RM |
23 | * any improvements or extensions that they make and grant Carnegie the |
24 | * rights to redistribute these changes. | |
25 | */ | |
26 | /* | |
27 | * HISTORY | |
28 | * $Log$ | |
6d52618b UD |
29 | * Revision 1.5 1996/12/20 01:32:34 drepper |
30 | * Update from main archive 961219 | |
31 | * | |
32 | * Revision 1.5 1996/12/19 20:23:39 drepper | |
33 | * Spelling corrections. | |
34 | * | |
28f540f4 RM |
35 | * Revision 1.4 1993/12/17 06:14:52 mib |
36 | * entered into RCS | |
37 | * | |
38 | * Revision 2.3 92/04/01 19:38:02 rpd | |
39 | * Added err_codes_device. | |
40 | * [92/03/09 rpd] | |
6d52618b | 41 | * |
28f540f4 RM |
42 | * Revision 2.2 92/01/16 00:08:50 rpd |
43 | * Moved from user collection to mk collection. | |
6d52618b | 44 | * |
28f540f4 RM |
45 | * Revision 2.3 91/08/29 15:51:22 rpd |
46 | * Updated err_codes_kern. | |
47 | * [91/08/15 rpd] | |
6d52618b | 48 | * |
28f540f4 RM |
49 | * Revision 2.2 91/03/27 16:05:27 mrt |
50 | * First checkin | |
6d52618b | 51 | * |
28f540f4 RM |
52 | */ |
53 | /* | |
54 | * File: err_kern.sub | |
55 | * Author: Douglas Orr, Carnegie Mellon University | |
56 | * Date: Mar, 1988 | |
57 | * | |
58 | * error codes for Mach and Unix kernels | |
59 | */ | |
60 | ||
61 | static char * err_codes_kern[] = { | |
62 | "(os/kern) successful", | |
63 | "(os/kern) invalid address", | |
64 | "(os/kern) protection failure", | |
65 | "(os/kern) no space available", | |
66 | "(os/kern) invalid argument", | |
67 | "(os/kern) failure", | |
68 | "(os/kern) resource shortage", | |
69 | "(os/kern) not receiver", | |
70 | "(os/kern) no access", | |
71 | "(os/kern) memory failure", | |
72 | "(os/kern) memory error", | |
73 | "(os/kern) already in set", | |
74 | "(os/kern) not in set", | |
75 | "(os/kern) name exists", | |
76 | "(os/kern) aborted", | |
77 | "(os/kern) invalid name", | |
78 | "(os/kern) invalid task", | |
79 | "(os/kern) invalid right", | |
80 | "(os/kern) invalid value", | |
81 | "(os/kern) urefs overflow", | |
82 | "(os/kern) invalid capability", | |
83 | "(os/kern) right exists", | |
84 | "(os/kern) invalid host", | |
85 | "(os/kern) memory present", | |
86 | }; | |
87 | ||
88 | static char * err_codes_device[] = { | |
89 | "(os/device) hardware IO error", | |
90 | "(os/device) operation would block", | |
91 | "(os/device) no such device", | |
92 | "(os/device) device already open", | |
93 | "(os/device) device is shut down", | |
94 | "(os/device) invalid operation", | |
95 | "(os/device) invalid record number", | |
96 | "(os/device) invalid IO size", | |
97 | "(os/device) memory allocation failure", | |
98 | "(os/device) read only", | |
99 | }; | |
100 | ||
101 | static char * err_codes_unix[] = { | |
102 | NO_SUCH_ERROR, | |
103 | "(os/unix) no rights to object", | |
104 | "(os/unix) file or directory does not exist", | |
105 | "(os/unix) no such process", | |
106 | "(os/unix) interrupted system call", | |
107 | "(os/unix) i/o error", | |
108 | "(os/unix) device does not exist", | |
109 | "(os/unix) argument list is too long", | |
110 | "(os/unix) invalid executable object format", | |
111 | "(os/unix) bad file descriptor number", | |
112 | "(os/unix) no child processes are present", | |
113 | "(os/unix) no more processes are available", | |
114 | "(os/unix) insufficient memory", | |
115 | "(os/unix) access denied", | |
116 | "(os/unix) memory access fault", | |
117 | "(os/unix) block device required for operation", | |
118 | "(os/unix) mount device busy", | |
119 | "(os/unix) file already exists", | |
120 | "(os/unix) cross device link", | |
121 | "(os/unix) device does not exist", | |
122 | "(os/unix) object is not a directory", | |
123 | "(os/unix) object is a directory", | |
124 | "(os/unix) invalid argument", | |
125 | "(os/unix) internal file table overflow", | |
126 | "(os/unix) maximum number of open files reached", | |
127 | "(os/unix) object is not a tty-like device", | |
128 | "(os/unix) executable object is in use", | |
129 | "(os/unix) file is too large", | |
130 | "(os/unix) no space is left on device", | |
131 | "(os/unix) illegal seek attempt", | |
132 | "(os/unix) read-only file system", | |
133 | "(os/unix) too many links", | |
134 | "(os/unix) broken pipe", | |
135 | "(os/unix) argument is too large", | |
136 | "(os/unix) result is out of range", | |
137 | "(os/unix) operation on device would block", | |
138 | "(os/unix) operation is now in progress", | |
6d52618b | 139 | "(os/unix) operation is already in progress", |
28f540f4 RM |
140 | "(os/unix) socket operation attempted on non-socket object", |
141 | "(os/unix) destination address is required", | |
142 | "(os/unix) message is too long", | |
143 | "(os/unix) protocol type is incorrect for socket", | |
6d52618b | 144 | "(os/unix) protocol type is not available", |
28f540f4 RM |
145 | "(os/unix) protocol type is not supported", |
146 | "(os/unix) socket type is not supported", | |
147 | "(os/unix) operation is not supported on sockets", | |
148 | "(os/unix) protocol family is not supported", | |
149 | "(os/unix) address family is not supported by protocol family", | |
150 | "(os/unix) address is already in use", | |
151 | "(os/unix) can't assign requested address", | |
152 | "(os/unix) network is down", | |
153 | "(os/unix) network is unreachable", | |
154 | "(os/unix) network dropped connection on reset", | |
155 | "(os/unix) software aborted connection", | |
156 | "(os/unix) connection reset by peer", | |
157 | "(os/unix) no buffer space is available", | |
158 | "(os/unix) socket is already connected", | |
159 | "(os/unix) socket is not connected", | |
160 | "(os/unix) can't send after socket shutdown", | |
161 | "(os/unix) too many references; can't splice", | |
162 | "(os/unix) connection timed out", | |
163 | "(os/unix) connection was refused", | |
164 | "(os/unix) too many levels of symbolic links", | |
165 | "(os/unix) file name exceeds system maximum limit", | |
166 | "(os/unix) host is down", | |
167 | "(os/unix) there is no route to host", | |
168 | "(os/unix) directory is not empty", | |
169 | "(os/unix) quota on number of processes exceeded", | |
170 | "(os/unix) quota on number of users exceeded", | |
171 | "(os/unix) quota on available disk space exceeded", | |
172 | }; | |
173 | ||
174 | static struct error_subsystem err_kern_sub[] = { | |
175 | { | |
176 | "(os/kern)", | |
177 | errlib_count(err_codes_kern), | |
178 | err_codes_kern, | |
179 | }, | |
180 | { | |
181 | "(os/device)", | |
182 | errlib_count(err_codes_device), | |
183 | err_codes_device, | |
184 | }, | |
185 | { | |
186 | "(os/?)", | |
187 | 0, | |
188 | }, | |
189 | { | |
190 | "(os/unix)", | |
191 | errlib_count(err_codes_unix), | |
192 | err_codes_unix, | |
193 | }, | |
194 | }; |