Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / irix / irix_errno.h
blob66c8ba55177189eb7c9f55cea58f2b3f4ac47ef5
1 /* $NetBSD: irix_errno.h,v 1.3 2005/12/11 12:20:12 christos Exp $ */
3 /*-
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Emmanuel Dreyfus
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
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> */
39 #define IRIX_EPERM 1
40 #define IRIX_ENOENT 2
41 #define IRIX_ESRCH 3
42 #define IRIX_EINTR 4
43 #define IRIX_EIO 5
44 #define IRIX_ENXIO 6
45 #define IRIX_E2BIG 7
46 #define IRIX_ENOEXEC 8
47 #define IRIX_EBADF 9
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
54 #define IRIX_EBUSY 16
55 #define IRIX_EEXIST 17
56 #define IRIX_EXDEV 18
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
65 #define IRIX_EFBIG 27
66 #define IRIX_ENOSPC 28
67 #define IRIX_ESPIPE 29
68 #define IRIX_EROFS 30
69 #define IRIX_EMLINK 31
70 #define IRIX_EPIPE 32
71 #define IRIX_EDOM 33
72 #define IRIX_ERANGE 34
73 #define IRIX_ENOMSG 35
74 #define IRIX_EIDRM 36
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
85 #define IRIX_ECKPT 47
86 #define IRIX_EBADE 50
87 #define IRIX_EBADR 51
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
96 #define IRIX_ETIME 62
97 #define IRIX_ENOSR 63
98 #define IRIX_ENONET 64
99 #define IRIX_ENOPKG 65
100 #define IRIX_EREMOTE 66
101 #define IRIX_ENOLINK 67
102 #define IRIX_EADV 68
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_ */