1 /* $NetBSD: irix_errno.h,v 1.3 2005/12/11 12:20:12 christos Exp $ */
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _IRIX_ERRNO_H_
33 #define _IRIX_ERRNO_H_
35 extern const int native_to_irix_errno
[];
37 /* From IRIX's <sys/errno.h> */
46 #define IRIX_ENOEXEC 8
48 #define IRIX_ECHILD 10
49 #define IRIX_EAGAIN 11
50 #define IRIX_ENOMEM 12
51 #define IRIX_EACCES 13
52 #define IRIX_EFAULT 14
53 #define IRIX_ENOTBLK 15
55 #define IRIX_EEXIST 17
57 #define IRIX_ENODEV 19
58 #define IRIX_ENOTDIR 20
59 #define IRIX_EISDIR 21
60 #define IRIX_EINVAL 22
61 #define IRIX_ENFILE 23
62 #define IRIX_EMFILE 24
63 #define IRIX_ENOTTY 25
64 #define IRIX_ETXTBSY 26
66 #define IRIX_ENOSPC 28
67 #define IRIX_ESPIPE 29
69 #define IRIX_EMLINK 31
72 #define IRIX_ERANGE 34
73 #define IRIX_ENOMSG 35
75 #define IRIX_ECHRNG 37
76 #define IRIX_EL2NSYNC 38
77 #define IRIX_EL3HLT 39
78 #define IRIX_EL3RST 40
79 #define IRIX_ELNRNG 41
80 #define IRIX_EUNATCH 42
81 #define IRIX_ENOCSI 43
82 #define IRIX_EL2HLT 44
83 #define IRIX_EDEADLK 45
84 #define IRIX_ENOLCK 46
88 #define IRIX_EXFULL 52
89 #define IRIX_ENOANO 53
90 #define IRIX_EBADRQC 54
91 #define IRIX_EBADSLT 55
92 #define IRIX_EDEADLOCK 56
93 #define IRIX_EBFONT 57
94 #define IRIX_ENOSTR 60
95 #define IRIX_ENODATA 61
98 #define IRIX_ENONET 64
99 #define IRIX_ENOPKG 65
100 #define IRIX_EREMOTE 66
101 #define IRIX_ENOLINK 67
103 #define IRIX_ESRMNT 69
104 #define IRIX_ECOMM 70
105 #define IRIX_EPROTO 71
106 #define IRIX_EMULTIHOP 74
107 #define IRIX_EBADMSG 77
108 #define IRIX_ENAMETOOLONG 78
109 #define IRIX_EOVERFLOW 79
110 #define IRIX_ENOTUNIQ 80
111 #define IRIX_EBADFD 81
112 #define IRIX_EREMCHG 82
113 #define IRIX_ELIBACC 83
114 #define IRIX_ELIBBAD 84
115 #define IRIX_ELIBSCN 85
116 #define IRIX_ELIBMAX 86
117 #define IRIX_ELIBEXEC 87
118 #define IRIX_EILSEQ 88
119 #define IRIX_ENOSYS 89
120 #define IRIX_ELOOP 90
121 #define IRIX_ERESTART 91
122 #define IRIX_ESTRPIPE 92
123 #define IRIX_ENOTEMPTY 93
124 #define IRIX_EUSERS 94
125 #define IRIX_ENOTSOCK 95
126 #define IRIX_EDESTADDRREQ 96
127 #define IRIX_EMSGSIZE 97
128 #define IRIX_EPROTOTYPE 98
129 #define IRIX_ENOPROTOOPT 99
130 #define IRIX_EPROTONOSUPPORT 120
131 #define IRIX_ESOCKTNOSUPPORT 121
132 #define IRIX_EOPNOTSUPP 122
133 #define IRIX_EPFNOSUPPORT 123
134 #define IRIX_EAFNOSUPPORT 124
135 #define IRIX_EADDRINUSE 125
136 #define IRIX_EADDRNOTAVAIL 126
137 #define IRIX_ENETDOWN 127
138 #define IRIX_ENETUNREACH 128
139 #define IRIX_ENETRESET 129
140 #define IRIX_ECONNABORTED 130
141 #define IRIX_ECONNRESET 131
142 #define IRIX_ENOBUFS 132
143 #define IRIX_EISCONN 133
144 #define IRIX_ENOTCONN 134
145 #define IRIX_ESHUTDOWN 143
146 #define IRIX_ETOOMANYREFS 144
147 #define IRIX_ETIMEDOUT 145
148 #define IRIX_ECONNREFUSED 146
149 #define IRIX_EHOSTDOWN 147
150 #define IRIX_EHOSTUNREACH 148
151 #define IRIX_LASTERRNO IRIX_ENOTCONN
152 #define IRIX_EWOULDBLOCK IRIX_EAGAIN
153 #define IRIX_EALREADY 149
154 #define IRIX_EINPROGRESS 150
155 #define IRIX_ESTALE 151
156 #define IRIX_EIORESID 500
157 #define IRIX_EUCLEAN 135
158 #define IRIX_ENOTNAM 137
159 #define IRIX_ENAVAIL 138
160 #define IRIX_EISNAM 139
161 #define IRIX_EREMOTEIO 140
162 #define IRIX_EINIT 141
163 #define IRIX_EREMDEV 142
164 #define IRIX_ECANCELED 158
167 * The following seems to be kernel specific, it
168 * is possible that we don't need them.
170 #define IRIX_ENOLIMFILE 1001
171 #define IRIX_EPROCLIM 1002
172 #define IRIX_EDISJOINT 1003
173 #define IRIX_ENOLOGIN 1004
174 #define IRIX_ELOGINLIM 1005
175 #define IRIX_EGROUPLOOP 1006
176 #define IRIX_ENOATTACH 1007
177 #define IRIX_ENOTSUP 1008
178 #define IRIX_ENOATTR 1009
179 #define IRIX_EFSCORRUPTED 1010
180 #define IRIX_EDIRCORRUPTED 1010
181 #define IRIX_EWRONGFS 1011
182 #define IRIX_EDQUOT 1133
183 #define IRIX_ENFSREMOTE 1135
184 #define IRIX_ECONTROLLER 1300
185 #define IRIX_ENOTCONTROLLER 1301
186 #define IRIX_EENQUEUED 1302
187 #define IRIX_ENOTENQUEUED 1303
188 #define IRIX_EJOINED 1304
189 #define IRIX_ENOTJOINED 1305
190 #define IRIX_ENOPROC 1306
191 #define IRIX_EMUSTRUN 1307
192 #define IRIX_ENOTSTOPPED 1308
193 #define IRIX_ECLOCKCPU 1309
194 #define IRIX_EINVALSTATE 1310
195 #define IRIX_ENOEXIST 1311
196 #define IRIX_EENDOFMINOR 1312
197 #define IRIX_EBUFSIZE 1313
198 #define IRIX_EEMPTY 1314
199 #define IRIX_ENOINTRGROUP 1315
200 #define IRIX_EINVALMODE 1316
201 #define IRIX_ECANTEXTENT 1317
202 #define IRIX_EINVALTIME 1318
203 #define IRIX_EDESTROYED 1319
204 #define IRIX_EBDHDL 1400
205 #define IRIX_EDELAY 1401
206 #define IRIX_ENOBWD 1402
207 #define IRIX_EBADRSPEC 1403
208 #define IRIX_EBADTSPEC 1404
209 #define IRIX_EBADFILT 1405
210 #define IRIX_EMIGRATED 1500
211 #define IRIX_EMIGRATING 1501
212 #define IRIX_ECELLDOWN 1502
213 #define IRIX_EMEMRETRY 1600
215 #endif /* _IRIX_ERRNO_H_ */