|
|
1.1 root 1: #ifndef _I386_ERRNO_H
2: #define _I386_ERRNO_H
3:
4: #ifdef MACH_INCLUDE
5:
6: #define LINUX_EPERM 1 /* Operation not permitted */
7: #define LINUX_ENOENT 2 /* No such file or directory */
8: #define LINUX_ESRCH 3 /* No such process */
9: #define LINUX_EINTR 4 /* Interrupted system call */
10: #define LINUX_EIO 5 /* I/O error */
11: #define LINUX_ENXIO 6 /* No such device or address */
12: #define LINUX_E2BIG 7 /* Arg list too long */
13: #define LINUX_ENOEXEC 8 /* Exec format error */
14: #define LINUX_EBADF 9 /* Bad file number */
15: #define LINUX_ECHILD 10 /* No child processes */
16: #define LINUX_EAGAIN 11 /* Try again */
17: #define LINUX_ENOMEM 12 /* Out of memory */
18: #define LINUX_EACCES 13 /* Permission denied */
19: #define LINUX_EFAULT 14 /* Bad address */
20: #define LINUX_ENOTBLK 15 /* Block device required */
21: #define LINUX_EBUSY 16 /* Device or resource busy */
22: #define LINUX_EEXIST 17 /* File exists */
23: #define LINUX_EXDEV 18 /* Cross-device link */
24: #define LINUX_ENODEV 19 /* No such device */
25: #define LINUX_ENOTDIR 20 /* Not a directory */
26: #define LINUX_EISDIR 21 /* Is a directory */
27: #define LINUX_EINVAL 22 /* Invalid argument */
28: #define LINUX_ENFILE 23 /* File table overflow */
29: #define LINUX_EMFILE 24 /* Too many open files */
30: #define LINUX_ENOTTY 25 /* Not a typewriter */
31: #define LINUX_ETXTBSY 26 /* Text file busy */
32: #define LINUX_EFBIG 27 /* File too large */
33: #define LINUX_ENOSPC 28 /* No space left on device */
34: #define LINUX_ESPIPE 29 /* Illegal seek */
35: #define LINUX_EROFS 30 /* Read-only file system */
36: #define LINUX_EMLINK 31 /* Too many links */
37: #define LINUX_EPIPE 32 /* Broken pipe */
38: #define LINUX_EDOM 33 /* Math argument out of domain of func */
39: #define LINUX_ERANGE 34 /* Math result not representable */
40: #define LINUX_EDEADLK 35 /* Resource deadlock would occur */
41: #define LINUX_ENAMETOOLONG 36 /* File name too long */
42: #define LINUX_ENOLCK 37 /* No record locks available */
43: #define LINUX_ENOSYS 38 /* Function not implemented */
44: #define LINUX_ENOTEMPTY 39 /* Directory not empty */
45: #define LINUX_ELOOP 40 /* Too many symbolic links encountered */
46: #define LINUX_EWOULDBLOCK LINUX_EAGAIN /* Operation would block */
47: #define LINUX_ENOMSG 42 /* No message of desired type */
48: #define LINUX_EIDRM 43 /* Identifier removed */
49: #define LINUX_ECHRNG 44 /* Channel number out of range */
50: #define LINUX_EL2NSYNC 45 /* Level 2 not synchronized */
51: #define LINUX_EL3HLT 46 /* Level 3 halted */
52: #define LINUX_EL3RST 47 /* Level 3 reset */
53: #define LINUX_ELNRNG 48 /* Link number out of range */
54: #define LINUX_EUNATCH 49 /* Protocol driver not attached */
55: #define LINUX_ENOCSI 50 /* No CSI structure available */
56: #define LINUX_EL2HLT 51 /* Level 2 halted */
57: #define LINUX_EBADE 52 /* Invalid exchange */
58: #define LINUX_EBADR 53 /* Invalid request descriptor */
59: #define LINUX_EXFULL 54 /* Exchange full */
60: #define LINUX_ENOANO 55 /* No anode */
61: #define LINUX_EBADRQC 56 /* Invalid request code */
62: #define LINUX_EBADSLT 57 /* Invalid slot */
63:
64: #define LINUX_EDEADLOCK LINUX_EDEADLK
65:
66: #define LINUX_EBFONT 59 /* Bad font file format */
67: #define LINUX_ENOSTR 60 /* Device not a stream */
68: #define LINUX_ENODATA 61 /* No data available */
69: #define LINUX_ETIME 62 /* Timer expired */
70: #define LINUX_ENOSR 63 /* Out of streams resources */
71: #define LINUX_ENONET 64 /* Machine is not on the network */
72: #define LINUX_ENOPKG 65 /* Package not installed */
73: #define LINUX_EREMOTE 66 /* Object is remote */
74: #define LINUX_ENOLINK 67 /* Link has been severed */
75: #define LINUX_EADV 68 /* Advertise error */
76: #define LINUX_ESRMNT 69 /* Srmount error */
77: #define LINUX_ECOMM 70 /* Communication error on send */
78: #define LINUX_EPROTO 71 /* Protocol error */
79: #define LINUX_EMULTIHOP 72 /* Multihop attempted */
80: #define LINUX_EDOTDOT 73 /* RFS specific error */
81: #define LINUX_EBADMSG 74 /* Not a data message */
82: #define LINUX_EOVERFLOW 75 /* Value too large for defined data type */
83: #define LINUX_ENOTUNIQ 76 /* Name not unique on network */
84: #define LINUX_EBADFD 77 /* File descriptor in bad state */
85: #define LINUX_EREMCHG 78 /* Remote address changed */
86: #define LINUX_ELIBACC 79 /* Can not access a needed shared library */
87: #define LINUX_ELIBBAD 80 /* Accessing a corrupted shared library */
88: #define LINUX_ELIBSCN 81 /* .lib section in a.out corrupted */
89: #define LINUX_ELIBMAX 82 /* Attempting to link in too many shared libraries */
90: #define LINUX_ELIBEXEC 83 /* Cannot exec a shared library directly */
91: #define LINUX_EILSEQ 84 /* Illegal byte sequence */
92: #define LINUX_ERESTART 85 /* Interrupted system call should be restarted */
93: #define LINUX_ESTRPIPE 86 /* Streams pipe error */
94: #define LINUX_EUSERS 87 /* Too many users */
95: #define LINUX_ENOTSOCK 88 /* Socket operation on non-socket */
96: #define LINUX_EDESTADDRREQ 89 /* Destination address required */
97: #define LINUX_EMSGSIZE 90 /* Message too long */
98: #define LINUX_EPROTOTYPE 91 /* Protocol wrong type for socket */
99: #define LINUX_ENOPROTOOPT 92 /* Protocol not available */
100: #define LINUX_EPROTONOSUPPORT 93 /* Protocol not supported */
101: #define LINUX_ESOCKTNOSUPPORT 94 /* Socket type not supported */
102: #define LINUX_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
103: #define LINUX_EPFNOSUPPORT 96 /* Protocol family not supported */
104: #define LINUX_EAFNOSUPPORT 97 /* Address family not supported by protocol */
105: #define LINUX_EADDRINUSE 98 /* Address already in use */
106: #define LINUX_EADDRNOTAVAIL 99 /* Cannot assign requested address */
107: #define LINUX_ENETDOWN 100 /* Network is down */
108: #define LINUX_ENETUNREACH 101 /* Network is unreachable */
109: #define LINUX_ENETRESET 102 /* Network dropped connection because of reset */
110: #define LINUX_ECONNABORTED 103 /* Software caused connection abort */
111: #define LINUX_ECONNRESET 104 /* Connection reset by peer */
112: #define LINUX_ENOBUFS 105 /* No buffer space available */
113: #define LINUX_EISCONN 106 /* Transport endpoint is already connected */
114: #define LINUX_ENOTCONN 107 /* Transport endpoint is not connected */
115: #define LINUX_ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
116: #define LINUX_ETOOMANYREFS 109 /* Too many references: cannot splice */
117: #define LINUX_ETIMEDOUT 110 /* Connection timed out */
118: #define LINUX_ECONNREFUSED 111 /* Connection refused */
119: #define LINUX_EHOSTDOWN 112 /* Host is down */
120: #define LINUX_EHOSTUNREACH 113 /* No route to host */
121: #define LINUX_EALREADY 114 /* Operation already in progress */
122: #define LINUX_EINPROGRESS 115 /* Operation now in progress */
123: #define LINUX_ESTALE 116 /* Stale NFS file handle */
124: #define LINUX_EUCLEAN 117 /* Structure needs cleaning */
125: #define LINUX_ENOTNAM 118 /* Not a XENIX named type file */
126: #define LINUX_ENAVAIL 119 /* No XENIX semaphores available */
127: #define LINUX_EISNAM 120 /* Is a named type file */
128: #define LINUX_EREMOTEIO 121 /* Remote I/O error */
129: #define LINUX_EDQUOT 122 /* Quota exceeded */
130:
131: #define LINUX_ENOMEDIUM 123 /* No medium found */
132: #define LINUX_EMEDIUMTYPE 124 /* Wrong medium type */
133:
134: #else /* !MACH_INCLUDE */
135:
136: #define EPERM 1 /* Operation not permitted */
137: #define ENOENT 2 /* No such file or directory */
138: #define ESRCH 3 /* No such process */
139: #define EINTR 4 /* Interrupted system call */
140: #define EIO 5 /* I/O error */
141: #define ENXIO 6 /* No such device or address */
142: #define E2BIG 7 /* Arg list too long */
143: #define ENOEXEC 8 /* Exec format error */
144: #define EBADF 9 /* Bad file number */
145: #define ECHILD 10 /* No child processes */
146: #define EAGAIN 11 /* Try again */
147: #define ENOMEM 12 /* Out of memory */
148: #define EACCES 13 /* Permission denied */
149: #define EFAULT 14 /* Bad address */
150: #define ENOTBLK 15 /* Block device required */
151: #define EBUSY 16 /* Device or resource busy */
152: #define EEXIST 17 /* File exists */
153: #define EXDEV 18 /* Cross-device link */
154: #define ENODEV 19 /* No such device */
155: #define ENOTDIR 20 /* Not a directory */
156: #define EISDIR 21 /* Is a directory */
157: #define EINVAL 22 /* Invalid argument */
158: #define ENFILE 23 /* File table overflow */
159: #define EMFILE 24 /* Too many open files */
160: #define ENOTTY 25 /* Not a typewriter */
161: #define ETXTBSY 26 /* Text file busy */
162: #define EFBIG 27 /* File too large */
163: #define ENOSPC 28 /* No space left on device */
164: #define ESPIPE 29 /* Illegal seek */
165: #define EROFS 30 /* Read-only file system */
166: #define EMLINK 31 /* Too many links */
167: #define EPIPE 32 /* Broken pipe */
168: #define EDOM 33 /* Math argument out of domain of func */
169: #define ERANGE 34 /* Math result not representable */
170: #define EDEADLK 35 /* Resource deadlock would occur */
171: #define ENAMETOOLONG 36 /* File name too long */
172: #define ENOLCK 37 /* No record locks available */
173: #define ENOSYS 38 /* Function not implemented */
174: #define ENOTEMPTY 39 /* Directory not empty */
175: #define ELOOP 40 /* Too many symbolic links encountered */
176: #define EWOULDBLOCK EAGAIN /* Operation would block */
177: #define ENOMSG 42 /* No message of desired type */
178: #define EIDRM 43 /* Identifier removed */
179: #define ECHRNG 44 /* Channel number out of range */
180: #define EL2NSYNC 45 /* Level 2 not synchronized */
181: #define EL3HLT 46 /* Level 3 halted */
182: #define EL3RST 47 /* Level 3 reset */
183: #define ELNRNG 48 /* Link number out of range */
184: #define EUNATCH 49 /* Protocol driver not attached */
185: #define ENOCSI 50 /* No CSI structure available */
186: #define EL2HLT 51 /* Level 2 halted */
187: #define EBADE 52 /* Invalid exchange */
188: #define EBADR 53 /* Invalid request descriptor */
189: #define EXFULL 54 /* Exchange full */
190: #define ENOANO 55 /* No anode */
191: #define EBADRQC 56 /* Invalid request code */
192: #define EBADSLT 57 /* Invalid slot */
193:
194: #define EDEADLOCK EDEADLK
195:
196: #define EBFONT 59 /* Bad font file format */
197: #define ENOSTR 60 /* Device not a stream */
198: #define ENODATA 61 /* No data available */
199: #define ETIME 62 /* Timer expired */
200: #define ENOSR 63 /* Out of streams resources */
201: #define ENONET 64 /* Machine is not on the network */
202: #define ENOPKG 65 /* Package not installed */
203: #define EREMOTE 66 /* Object is remote */
204: #define ENOLINK 67 /* Link has been severed */
205: #define EADV 68 /* Advertise error */
206: #define ESRMNT 69 /* Srmount error */
207: #define ECOMM 70 /* Communication error on send */
208: #define EPROTO 71 /* Protocol error */
209: #define EMULTIHOP 72 /* Multihop attempted */
210: #define EDOTDOT 73 /* RFS specific error */
211: #define EBADMSG 74 /* Not a data message */
212: #define EOVERFLOW 75 /* Value too large for defined data type */
213: #define ENOTUNIQ 76 /* Name not unique on network */
214: #define EBADFD 77 /* File descriptor in bad state */
215: #define EREMCHG 78 /* Remote address changed */
216: #define ELIBACC 79 /* Can not access a needed shared library */
217: #define ELIBBAD 80 /* Accessing a corrupted shared library */
218: #define ELIBSCN 81 /* .lib section in a.out corrupted */
219: #define ELIBMAX 82 /* Attempting to link in too many shared libraries */
220: #define ELIBEXEC 83 /* Cannot exec a shared library directly */
221: #define EILSEQ 84 /* Illegal byte sequence */
222: #define ERESTART 85 /* Interrupted system call should be restarted */
223: #define ESTRPIPE 86 /* Streams pipe error */
224: #define EUSERS 87 /* Too many users */
225: #define ENOTSOCK 88 /* Socket operation on non-socket */
226: #define EDESTADDRREQ 89 /* Destination address required */
227: #define EMSGSIZE 90 /* Message too long */
228: #define EPROTOTYPE 91 /* Protocol wrong type for socket */
229: #define ENOPROTOOPT 92 /* Protocol not available */
230: #define EPROTONOSUPPORT 93 /* Protocol not supported */
231: #define ESOCKTNOSUPPORT 94 /* Socket type not supported */
232: #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
233: #define EPFNOSUPPORT 96 /* Protocol family not supported */
234: #define EAFNOSUPPORT 97 /* Address family not supported by protocol */
235: #define EADDRINUSE 98 /* Address already in use */
236: #define EADDRNOTAVAIL 99 /* Cannot assign requested address */
237: #define ENETDOWN 100 /* Network is down */
238: #define ENETUNREACH 101 /* Network is unreachable */
239: #define ENETRESET 102 /* Network dropped connection because of reset */
240: #define ECONNABORTED 103 /* Software caused connection abort */
241: #define ECONNRESET 104 /* Connection reset by peer */
242: #define ENOBUFS 105 /* No buffer space available */
243: #define EISCONN 106 /* Transport endpoint is already connected */
244: #define ENOTCONN 107 /* Transport endpoint is not connected */
245: #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
246: #define ETOOMANYREFS 109 /* Too many references: cannot splice */
247: #define ETIMEDOUT 110 /* Connection timed out */
248: #define ECONNREFUSED 111 /* Connection refused */
249: #define EHOSTDOWN 112 /* Host is down */
250: #define EHOSTUNREACH 113 /* No route to host */
251: #define EALREADY 114 /* Operation already in progress */
252: #define EINPROGRESS 115 /* Operation now in progress */
253: #define ESTALE 116 /* Stale NFS file handle */
254: #define EUCLEAN 117 /* Structure needs cleaning */
255: #define ENOTNAM 118 /* Not a XENIX named type file */
256: #define ENAVAIL 119 /* No XENIX semaphores available */
257: #define EISNAM 120 /* Is a named type file */
258: #define EREMOTEIO 121 /* Remote I/O error */
259: #define EDQUOT 122 /* Quota exceeded */
260:
261: #define ENOMEDIUM 123 /* No medium found */
262: #define EMEDIUMTYPE 124 /* Wrong medium type */
263:
264: #endif /* !MACH_INCLUDE */
265:
266: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.