Warning: This file is not a C or C++ file. It does not have highlighting.

1/* This file generated by errnos.awk from
2 errno.texi
3 mach/message.h
4 mach/kern_return.h
5 mach/mig_errors.h
6 device/device_types.h
7 Do not edit this file; edit errnos.awk and regenerate it. */
8
9#ifndef _BITS_ERRNO_H
10#define _BITS_ERRNO_H 1
11
12#if !defined _ERRNO_H
13# error "Never include <bits/errno.h> directly; use <errno.h> instead."
14#endif
15
16#ifndef __ASSEMBLER__
17
18enum __error_t_codes
19{
20 /* The value zero always means success and it is perfectly fine
21 for code to use 0 explicitly (or implicitly, e.g. via Boolean
22 coercion.) Having an enum entry for zero both makes the
23 debugger print the name for error_t-typed zero values, and
24 prevents the compiler from issuing warnings about 'case 0:'
25 in a switch on an error_t-typed value. */
26 ESUCCESS = 0,
27
28 /* The Hurd uses Mach error system 0x10, subsystem 0. */
29 EPERM = 0x40000001, /* Operation not permitted */
30 ENOENT = 0x40000002, /* No such file or directory */
31 ESRCH = 0x40000003, /* No such process */
32 EINTR = 0x40000004, /* Interrupted system call */
33 EIO = 0x40000005, /* Input/output error */
34 ENXIO = 0x40000006, /* No such device or address */
35 E2BIG = 0x40000007, /* Argument list too long */
36 ENOEXEC = 0x40000008, /* Exec format error */
37 EBADF = 0x40000009, /* Bad file descriptor */
38 ECHILD = 0x4000000a, /* No child processes */
39 EDEADLK = 0x4000000b, /* Resource deadlock avoided */
40 ENOMEM = 0x4000000c, /* Cannot allocate memory */
41 EACCES = 0x4000000d, /* Permission denied */
42 EFAULT = 0x4000000e, /* Bad address */
43 ENOTBLK = 0x4000000f, /* Block device required */
44 EBUSY = 0x40000010, /* Device or resource busy */
45 EEXIST = 0x40000011, /* File exists */
46 EXDEV = 0x40000012, /* Invalid cross-device link */
47 ENODEV = 0x40000013, /* No such device */
48 ENOTDIR = 0x40000014, /* Not a directory */
49 EISDIR = 0x40000015, /* Is a directory */
50 EINVAL = 0x40000016, /* Invalid argument */
51 EMFILE = 0x40000018, /* Too many open files */
52 ENFILE = 0x40000017, /* Too many open files in system */
53 ENOTTY = 0x40000019, /* Inappropriate ioctl for device */
54 ETXTBSY = 0x4000001a, /* Text file busy */
55 EFBIG = 0x4000001b, /* File too large */
56 ENOSPC = 0x4000001c, /* No space left on device */
57 ESPIPE = 0x4000001d, /* Illegal seek */
58 EROFS = 0x4000001e, /* Read-only file system */
59 EMLINK = 0x4000001f, /* Too many links */
60 EPIPE = 0x40000020, /* Broken pipe */
61 EDOM = 0x40000021, /* Numerical argument out of domain */
62 ERANGE = 0x40000022, /* Numerical result out of range */
63 EAGAIN = 0x40000023, /* Resource temporarily unavailable */
64 EINPROGRESS = 0x40000024, /* Operation now in progress */
65 EALREADY = 0x40000025, /* Operation already in progress */
66 ENOTSOCK = 0x40000026, /* Socket operation on non-socket */
67 EMSGSIZE = 0x40000028, /* Message too long */
68 EPROTOTYPE = 0x40000029, /* Protocol wrong type for socket */
69 ENOPROTOOPT = 0x4000002a, /* Protocol not available */
70 EPROTONOSUPPORT = 0x4000002b, /* Protocol not supported */
71 ESOCKTNOSUPPORT = 0x4000002c, /* Socket type not supported */
72 EOPNOTSUPP = 0x4000002d, /* Operation not supported */
73 EPFNOSUPPORT = 0x4000002e, /* Protocol family not supported */
74 EAFNOSUPPORT = 0x4000002f, /* Address family not supported by protocol */
75 EADDRINUSE = 0x40000030, /* Address already in use */
76 EADDRNOTAVAIL = 0x40000031, /* Cannot assign requested address */
77 ENETDOWN = 0x40000032, /* Network is down */
78 ENETUNREACH = 0x40000033, /* Network is unreachable */
79 ENETRESET = 0x40000034, /* Network dropped connection on reset */
80 ECONNABORTED = 0x40000035, /* Software caused connection abort */
81 ECONNRESET = 0x40000036, /* Connection reset by peer */
82 ENOBUFS = 0x40000037, /* No buffer space available */
83 EISCONN = 0x40000038, /* Transport endpoint is already connected */
84 ENOTCONN = 0x40000039, /* Transport endpoint is not connected */
85 EDESTADDRREQ = 0x40000027, /* Destination address required */
86 ESHUTDOWN = 0x4000003a, /* Cannot send after transport endpoint shutdown */
87 ETOOMANYREFS = 0x4000003b, /* Too many references: cannot splice */
88 ETIMEDOUT = 0x4000003c, /* Connection timed out */
89 ECONNREFUSED = 0x4000003d, /* Connection refused */
90 ELOOP = 0x4000003e, /* Too many levels of symbolic links */
91 ENAMETOOLONG = 0x4000003f, /* File name too long */
92 EHOSTDOWN = 0x40000040, /* Host is down */
93 EHOSTUNREACH = 0x40000041, /* No route to host */
94 ENOTEMPTY = 0x40000042, /* Directory not empty */
95 EPROCLIM = 0x40000043, /* Too many processes */
96 EUSERS = 0x40000044, /* Too many users */
97 EDQUOT = 0x40000045, /* Disk quota exceeded */
98 ESTALE = 0x40000046, /* Stale file handle */
99 EREMOTE = 0x40000047, /* Object is remote */
100 EBADRPC = 0x40000048, /* RPC struct is bad */
101 ERPCMISMATCH = 0x40000049, /* RPC version wrong */
102 EPROGUNAVAIL = 0x4000004a, /* RPC program not available */
103 EPROGMISMATCH = 0x4000004b, /* RPC program version wrong */
104 EPROCUNAVAIL = 0x4000004c, /* RPC bad procedure for program */
105 ENOLCK = 0x4000004d, /* No locks available */
106 EFTYPE = 0x4000004f, /* Inappropriate file type or format */
107 EAUTH = 0x40000050, /* Authentication error */
108 ENEEDAUTH = 0x40000051, /* Need authenticator */
109 ENOSYS = 0x4000004e, /* Function not implemented */
110 ELIBEXEC = 0x40000053, /* Cannot exec a shared library directly */
111 ENOTSUP = 0x40000076, /* Not supported */
112 EILSEQ = 0x4000006a, /* Invalid or incomplete multibyte or wide character */
113 EBACKGROUND = 0x40000064, /* Inappropriate operation for background process */
114 EDIED = 0x40000065, /* Translator died */
115 ED = 0x40000066, /* ? */
116 EGREGIOUS = 0x40000067, /* You really blew it this time */
117 EIEIO = 0x40000068, /* Computer bought the farm */
118 EGRATUITOUS = 0x40000069, /* Gratuitous error */
119 EBADMSG = 0x4000006b, /* Bad message */
120 EIDRM = 0x4000006c, /* Identifier removed */
121 EMULTIHOP = 0x4000006d, /* Multihop attempted */
122 ENODATA = 0x4000006e, /* No data available */
123 ENOLINK = 0x4000006f, /* Link has been severed */
124 ENOMSG = 0x40000070, /* No message of desired type */
125 ENOSR = 0x40000071, /* Out of streams resources */
126 ENOSTR = 0x40000072, /* Device not a stream */
127 EOVERFLOW = 0x40000073, /* Value too large for defined data type */
128 EPROTO = 0x40000074, /* Protocol error */
129 ETIME = 0x40000075, /* Timer expired */
130 ECANCELED = 0x40000077, /* Operation canceled */
131 EOWNERDEAD = 0x40000078, /* Owner died */
132 ENOTRECOVERABLE = 0x40000079, /* State not recoverable */
133
134/* Errors from <mach/message.h>. */
135 EMACH_SEND_IN_PROGRESS = 0x10000001,
136 EMACH_SEND_INVALID_DATA = 0x10000002,
137 EMACH_SEND_INVALID_DEST = 0x10000003,
138 EMACH_SEND_TIMED_OUT = 0x10000004,
139 EMACH_SEND_WILL_NOTIFY = 0x10000005,
140 EMACH_SEND_NOTIFY_IN_PROGRESS = 0x10000006,
141 EMACH_SEND_INTERRUPTED = 0x10000007,
142 EMACH_SEND_MSG_TOO_SMALL = 0x10000008,
143 EMACH_SEND_INVALID_REPLY = 0x10000009,
144 EMACH_SEND_INVALID_RIGHT = 0x1000000a,
145 EMACH_SEND_INVALID_NOTIFY = 0x1000000b,
146 EMACH_SEND_INVALID_MEMORY = 0x1000000c,
147 EMACH_SEND_NO_BUFFER = 0x1000000d,
148 EMACH_SEND_NO_NOTIFY = 0x1000000e,
149 EMACH_SEND_INVALID_TYPE = 0x1000000f,
150 EMACH_SEND_INVALID_HEADER = 0x10000010,
151 EMACH_RCV_IN_PROGRESS = 0x10004001,
152 EMACH_RCV_INVALID_NAME = 0x10004002,
153 EMACH_RCV_TIMED_OUT = 0x10004003,
154 EMACH_RCV_TOO_LARGE = 0x10004004,
155 EMACH_RCV_INTERRUPTED = 0x10004005,
156 EMACH_RCV_PORT_CHANGED = 0x10004006,
157 EMACH_RCV_INVALID_NOTIFY = 0x10004007,
158 EMACH_RCV_INVALID_DATA = 0x10004008,
159 EMACH_RCV_PORT_DIED = 0x10004009,
160 EMACH_RCV_IN_SET = 0x1000400a,
161 EMACH_RCV_HEADER_ERROR = 0x1000400b,
162 EMACH_RCV_BODY_ERROR = 0x1000400c,
163
164/* Errors from <mach/kern_return.h>. */
165 EKERN_INVALID_ADDRESS = 1,
166 EKERN_PROTECTION_FAILURE = 2,
167 EKERN_NO_SPACE = 3,
168 EKERN_INVALID_ARGUMENT = 4,
169 EKERN_FAILURE = 5,
170 EKERN_RESOURCE_SHORTAGE = 6,
171 EKERN_NOT_RECEIVER = 7,
172 EKERN_NO_ACCESS = 8,
173 EKERN_MEMORY_FAILURE = 9,
174 EKERN_MEMORY_ERROR = 10,
175 EKERN_NOT_IN_SET = 12,
176 EKERN_NAME_EXISTS = 13,
177 EKERN_ABORTED = 14,
178 EKERN_INVALID_NAME = 15,
179 EKERN_INVALID_TASK = 16,
180 EKERN_INVALID_RIGHT = 17,
181 EKERN_INVALID_VALUE = 18,
182 EKERN_UREFS_OVERFLOW = 19,
183 EKERN_INVALID_CAPABILITY = 20,
184 EKERN_RIGHT_EXISTS = 21,
185 EKERN_INVALID_HOST = 22,
186 EKERN_MEMORY_PRESENT = 23,
187 EKERN_WRITE_PROTECTION_FAILURE = 24,
188 EKERN_TERMINATED = 26,
189 EKERN_TIMEDOUT = 27,
190 EKERN_INTERRUPTED = 28,
191
192/* Errors from <mach/mig_errors.h>. */
193 EMIG_TYPE_ERROR = -300, /* client type check failure */
194 EMIG_REPLY_MISMATCH = -301, /* wrong reply message ID */
195 EMIG_REMOTE_ERROR = -302, /* server detected error */
196 EMIG_BAD_ID = -303, /* bad request message ID */
197 EMIG_BAD_ARGUMENTS = -304, /* server type check failure */
198 EMIG_NO_REPLY = -305, /* no reply should be sent */
199 EMIG_EXCEPTION = -306, /* server raised exception */
200 EMIG_ARRAY_TOO_LARGE = -307, /* array not large enough */
201 EMIG_SERVER_DIED = -308, /* server died */
202 EMIG_DESTROY_REQUEST = -309, /* destroy request with no reply */
203
204/* Errors from <device/device_types.h>. */
205 ED_IO_ERROR = 2500, /* hardware IO error */
206 ED_WOULD_BLOCK = 2501, /* would block, but D_NOWAIT set */
207 ED_NO_SUCH_DEVICE = 2502, /* no such device */
208 ED_ALREADY_OPEN = 2503, /* exclusive-use device already open */
209 ED_DEVICE_DOWN = 2504, /* device has been shut down */
210 ED_INVALID_OPERATION = 2505, /* bad operation for device */
211 ED_INVALID_RECNUM = 2506, /* invalid record (block) number */
212 ED_INVALID_SIZE = 2507, /* invalid IO size */
213 ED_NO_MEMORY = 2508, /* memory allocation failure */
214 ED_READ_ONLY = 2509, /* device cannot be written to */
215
216 /* Because the C standard requires that errno have type 'int',
217 this enumeration must be a signed type. */
218 __FORCE_ERROR_T_CODES_SIGNED = -1
219};
220
221#endif /* not __ASSEMBLER__ */
222
223/* The C standard requires that all of the E-constants be
224 defined as macros. */
225
226#define EPERM 0x40000001
227#define ENOENT 0x40000002
228#define ESRCH 0x40000003
229#define EINTR 0x40000004
230#define EIO 0x40000005
231#define ENXIO 0x40000006
232#define E2BIG 0x40000007
233#define ENOEXEC 0x40000008
234#define EBADF 0x40000009
235#define ECHILD 0x4000000a
236#define EDEADLK 0x4000000b
237#define ENOMEM 0x4000000c
238#define EACCES 0x4000000d
239#define EFAULT 0x4000000e
240#define ENOTBLK 0x4000000f
241#define EBUSY 0x40000010
242#define EEXIST 0x40000011
243#define EXDEV 0x40000012
244#define ENODEV 0x40000013
245#define ENOTDIR 0x40000014
246#define EISDIR 0x40000015
247#define EINVAL 0x40000016
248#define EMFILE 0x40000018
249#define ENFILE 0x40000017
250#define ENOTTY 0x40000019
251#define ETXTBSY 0x4000001a
252#define EFBIG 0x4000001b
253#define ENOSPC 0x4000001c
254#define ESPIPE 0x4000001d
255#define EROFS 0x4000001e
256#define EMLINK 0x4000001f
257#define EPIPE 0x40000020
258#define EDOM 0x40000021
259#define ERANGE 0x40000022
260#define EAGAIN 0x40000023
261#define EWOULDBLOCK EAGAIN
262#define EINPROGRESS 0x40000024
263#define EALREADY 0x40000025
264#define ENOTSOCK 0x40000026
265#define EMSGSIZE 0x40000028
266#define EPROTOTYPE 0x40000029
267#define ENOPROTOOPT 0x4000002a
268#define EPROTONOSUPPORT 0x4000002b
269#define ESOCKTNOSUPPORT 0x4000002c
270#define EOPNOTSUPP 0x4000002d
271#define EPFNOSUPPORT 0x4000002e
272#define EAFNOSUPPORT 0x4000002f
273#define EADDRINUSE 0x40000030
274#define EADDRNOTAVAIL 0x40000031
275#define ENETDOWN 0x40000032
276#define ENETUNREACH 0x40000033
277#define ENETRESET 0x40000034
278#define ECONNABORTED 0x40000035
279#define ECONNRESET 0x40000036
280#define ENOBUFS 0x40000037
281#define EISCONN 0x40000038
282#define ENOTCONN 0x40000039
283#define EDESTADDRREQ 0x40000027
284#define ESHUTDOWN 0x4000003a
285#define ETOOMANYREFS 0x4000003b
286#define ETIMEDOUT 0x4000003c
287#define ECONNREFUSED 0x4000003d
288#define ELOOP 0x4000003e
289#define ENAMETOOLONG 0x4000003f
290#define EHOSTDOWN 0x40000040
291#define EHOSTUNREACH 0x40000041
292#define ENOTEMPTY 0x40000042
293#define EPROCLIM 0x40000043
294#define EUSERS 0x40000044
295#define EDQUOT 0x40000045
296#define ESTALE 0x40000046
297#define EREMOTE 0x40000047
298#define EBADRPC 0x40000048
299#define ERPCMISMATCH 0x40000049
300#define EPROGUNAVAIL 0x4000004a
301#define EPROGMISMATCH 0x4000004b
302#define EPROCUNAVAIL 0x4000004c
303#define ENOLCK 0x4000004d
304#define EFTYPE 0x4000004f
305#define EAUTH 0x40000050
306#define ENEEDAUTH 0x40000051
307#define ENOSYS 0x4000004e
308#define ELIBEXEC 0x40000053
309#define ENOTSUP 0x40000076
310#define EILSEQ 0x4000006a
311#define EBACKGROUND 0x40000064
312#define EDIED 0x40000065
313#define ED 0x40000066
314#define EGREGIOUS 0x40000067
315#define EIEIO 0x40000068
316#define EGRATUITOUS 0x40000069
317#define EBADMSG 0x4000006b
318#define EIDRM 0x4000006c
319#define EMULTIHOP 0x4000006d
320#define ENODATA 0x4000006e
321#define ENOLINK 0x4000006f
322#define ENOMSG 0x40000070
323#define ENOSR 0x40000071
324#define ENOSTR 0x40000072
325#define EOVERFLOW 0x40000073
326#define EPROTO 0x40000074
327#define ETIME 0x40000075
328#define ECANCELED 0x40000077
329#define EOWNERDEAD 0x40000078
330#define ENOTRECOVERABLE 0x40000079
331
332/* Errors from <mach/message.h>. */
333#define EMACH_SEND_IN_PROGRESS 0x10000001
334#define EMACH_SEND_INVALID_DATA 0x10000002
335#define EMACH_SEND_INVALID_DEST 0x10000003
336#define EMACH_SEND_TIMED_OUT 0x10000004
337#define EMACH_SEND_WILL_NOTIFY 0x10000005
338#define EMACH_SEND_NOTIFY_IN_PROGRESS 0x10000006
339#define EMACH_SEND_INTERRUPTED 0x10000007
340#define EMACH_SEND_MSG_TOO_SMALL 0x10000008
341#define EMACH_SEND_INVALID_REPLY 0x10000009
342#define EMACH_SEND_INVALID_RIGHT 0x1000000a
343#define EMACH_SEND_INVALID_NOTIFY 0x1000000b
344#define EMACH_SEND_INVALID_MEMORY 0x1000000c
345#define EMACH_SEND_NO_BUFFER 0x1000000d
346#define EMACH_SEND_NO_NOTIFY 0x1000000e
347#define EMACH_SEND_INVALID_TYPE 0x1000000f
348#define EMACH_SEND_INVALID_HEADER 0x10000010
349#define EMACH_RCV_IN_PROGRESS 0x10004001
350#define EMACH_RCV_INVALID_NAME 0x10004002
351#define EMACH_RCV_TIMED_OUT 0x10004003
352#define EMACH_RCV_TOO_LARGE 0x10004004
353#define EMACH_RCV_INTERRUPTED 0x10004005
354#define EMACH_RCV_PORT_CHANGED 0x10004006
355#define EMACH_RCV_INVALID_NOTIFY 0x10004007
356#define EMACH_RCV_INVALID_DATA 0x10004008
357#define EMACH_RCV_PORT_DIED 0x10004009
358#define EMACH_RCV_IN_SET 0x1000400a
359#define EMACH_RCV_HEADER_ERROR 0x1000400b
360#define EMACH_RCV_BODY_ERROR 0x1000400c
361
362/* Errors from <mach/kern_return.h>. */
363#define EKERN_INVALID_ADDRESS 1
364#define EKERN_PROTECTION_FAILURE 2
365#define EKERN_NO_SPACE 3
366#define EKERN_INVALID_ARGUMENT 4
367#define EKERN_FAILURE 5
368#define EKERN_RESOURCE_SHORTAGE 6
369#define EKERN_NOT_RECEIVER 7
370#define EKERN_NO_ACCESS 8
371#define EKERN_MEMORY_FAILURE 9
372#define EKERN_MEMORY_ERROR 10
373#define EKERN_NOT_IN_SET 12
374#define EKERN_NAME_EXISTS 13
375#define EKERN_ABORTED 14
376#define EKERN_INVALID_NAME 15
377#define EKERN_INVALID_TASK 16
378#define EKERN_INVALID_RIGHT 17
379#define EKERN_INVALID_VALUE 18
380#define EKERN_UREFS_OVERFLOW 19
381#define EKERN_INVALID_CAPABILITY 20
382#define EKERN_RIGHT_EXISTS 21
383#define EKERN_INVALID_HOST 22
384#define EKERN_MEMORY_PRESENT 23
385#define EKERN_WRITE_PROTECTION_FAILURE 24
386#define EKERN_TERMINATED 26
387#define EKERN_TIMEDOUT 27
388#define EKERN_INTERRUPTED 28
389
390/* Errors from <mach/mig_errors.h>. */
391#define EMIG_TYPE_ERROR -300
392#define EMIG_REPLY_MISMATCH -301
393#define EMIG_REMOTE_ERROR -302
394#define EMIG_BAD_ID -303
395#define EMIG_BAD_ARGUMENTS -304
396#define EMIG_NO_REPLY -305
397#define EMIG_EXCEPTION -306
398#define EMIG_ARRAY_TOO_LARGE -307
399#define EMIG_SERVER_DIED -308
400#define EMIG_DESTROY_REQUEST -309
401
402/* Errors from <device/device_types.h>. */
403#define ED_IO_ERROR 2500
404#define ED_WOULD_BLOCK 2501
405#define ED_NO_SUCH_DEVICE 2502
406#define ED_ALREADY_OPEN 2503
407#define ED_DEVICE_DOWN 2504
408#define ED_INVALID_OPERATION 2505
409#define ED_INVALID_RECNUM 2506
410#define ED_INVALID_SIZE 2507
411#define ED_NO_MEMORY 2508
412#define ED_READ_ONLY 2509
413
414#define _HURD_ERRNOS 122
415
416#endif /* bits/errno.h. */
417

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of glibc/sysdeps/mach/hurd/bits/errno.h