LEFT | RIGHT |
(no file at all) | |
1 // mkerrors_windows.sh -f -m32 | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT | 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file. |
3 | 4 |
4 package syscall | 5 package syscall |
5 | |
6 // Go names for Windows errors. | |
7 const ( | |
8 ENOENT = ERROR_FILE_NOT_FOUND | |
9 ENOTDIR = ERROR_DIRECTORY | |
10 ) | |
11 | |
12 // Windows reserves errors >= 1<<29 for application use. | |
13 const APPLICATION_ERROR = 1 << 29 | |
14 | |
15 // Invented values to support what package os and others expects. | |
16 const ( | |
17 E2BIG = APPLICATION_ERROR + iota | |
18 EACCES | |
19 EADDRINUSE | |
20 EADDRNOTAVAIL | |
21 EADV | |
22 EAFNOSUPPORT | |
23 EAGAIN | |
24 EALREADY | |
25 EBADE | |
26 EBADF | |
27 EBADFD | |
28 EBADMSG | |
29 EBADR | |
30 EBADRQC | |
31 EBADSLT | |
32 EBFONT | |
33 EBUSY | |
34 ECANCELED | |
35 ECHILD | |
36 ECHRNG | |
37 ECOMM | |
38 ECONNABORTED | |
39 ECONNREFUSED | |
40 ECONNRESET | |
41 EDEADLK | |
42 EDEADLOCK | |
43 EDESTADDRREQ | |
44 EDOM | |
45 EDOTDOT | |
46 EDQUOT | |
47 EEXIST | |
48 EFAULT | |
49 EFBIG | |
50 EHOSTDOWN | |
51 EHOSTUNREACH | |
52 EIDRM | |
53 EILSEQ | |
54 EINPROGRESS | |
55 EINTR | |
56 EINVAL | |
57 EIO | |
58 EISCONN | |
59 EISDIR | |
60 EISNAM | |
61 EKEYEXPIRED | |
62 EKEYREJECTED | |
63 EKEYREVOKED | |
64 EL2HLT | |
65 EL2NSYNC | |
66 EL3HLT | |
67 EL3RST | |
68 ELIBACC | |
69 ELIBBAD | |
70 ELIBEXEC | |
71 ELIBMAX | |
72 ELIBSCN | |
73 ELNRNG | |
74 ELOOP | |
75 EMEDIUMTYPE | |
76 EMFILE | |
77 EMLINK | |
78 EMSGSIZE | |
79 EMULTIHOP | |
80 ENAMETOOLONG | |
81 ENAVAIL | |
82 ENETDOWN | |
83 ENETRESET | |
84 ENETUNREACH | |
85 ENFILE | |
86 ENOANO | |
87 ENOBUFS | |
88 ENOCSI | |
89 ENODATA | |
90 ENODEV | |
91 ENOEXEC | |
92 ENOKEY | |
93 ENOLCK | |
94 ENOLINK | |
95 ENOMEDIUM | |
96 ENOMEM | |
97 ENOMSG | |
98 ENONET | |
99 ENOPKG | |
100 ENOPROTOOPT | |
101 ENOSPC | |
102 ENOSR | |
103 ENOSTR | |
104 ENOSYS | |
105 ENOTBLK | |
106 ENOTCONN | |
107 ENOTEMPTY | |
108 ENOTNAM | |
109 ENOTRECOVERABLE | |
110 ENOTSOCK | |
111 ENOTSUP | |
112 ENOTTY | |
113 ENOTUNIQ | |
114 ENXIO | |
115 EOPNOTSUPP | |
116 EOVERFLOW | |
117 EOWNERDEAD | |
118 EPERM | |
119 EPFNOSUPPORT | |
120 EPIPE | |
121 EPROTO | |
122 EPROTONOSUPPORT | |
123 EPROTOTYPE | |
124 ERANGE | |
125 EREMCHG | |
126 EREMOTE | |
127 EREMOTEIO | |
128 ERESTART | |
129 EROFS | |
130 ESHUTDOWN | |
131 ESOCKTNOSUPPORT | |
132 ESPIPE | |
133 ESRCH | |
134 ESRMNT | |
135 ESTALE | |
136 ESTRPIPE | |
137 ETIME | |
138 ETIMEDOUT | |
139 ETOOMANYREFS | |
140 ETXTBSY | |
141 EUCLEAN | |
142 EUNATCH | |
143 EUSERS | |
144 EWOULDBLOCK | |
145 EXDEV | |
146 EXFULL | |
147 EWINDOWS | |
148 ) | |
149 | |
150 // Error strings for invented errors | |
151 var errors = [...]string{ | |
152 E2BIG - APPLICATION_ERROR: "argument list too long", | |
153 EACCES - APPLICATION_ERROR: "permission denied", | |
154 EADDRINUSE - APPLICATION_ERROR: "address already in use", | |
155 EADDRNOTAVAIL - APPLICATION_ERROR: "cannot assign requested address", | |
156 EADV - APPLICATION_ERROR: "advertise error", | |
157 EAFNOSUPPORT - APPLICATION_ERROR: "address family not supported by pr
otocol", | |
158 EAGAIN - APPLICATION_ERROR: "resource temporarily unavailable", | |
159 EALREADY - APPLICATION_ERROR: "operation already in progress", | |
160 EBADE - APPLICATION_ERROR: "invalid exchange", | |
161 EBADF - APPLICATION_ERROR: "bad file descriptor", | |
162 EBADFD - APPLICATION_ERROR: "file descriptor in bad state", | |
163 EBADMSG - APPLICATION_ERROR: "bad message", | |
164 EBADR - APPLICATION_ERROR: "invalid request descriptor", | |
165 EBADRQC - APPLICATION_ERROR: "invalid request code", | |
166 EBADSLT - APPLICATION_ERROR: "invalid slot", | |
167 EBFONT - APPLICATION_ERROR: "bad font file format", | |
168 EBUSY - APPLICATION_ERROR: "device or resource busy", | |
169 ECANCELED - APPLICATION_ERROR: "operation canceled", | |
170 ECHILD - APPLICATION_ERROR: "no child processes", | |
171 ECHRNG - APPLICATION_ERROR: "channel number out of range", | |
172 ECOMM - APPLICATION_ERROR: "communication error on send", | |
173 ECONNABORTED - APPLICATION_ERROR: "software caused connection abort", | |
174 ECONNREFUSED - APPLICATION_ERROR: "connection refused", | |
175 ECONNRESET - APPLICATION_ERROR: "connection reset by peer", | |
176 EDEADLK - APPLICATION_ERROR: "resource deadlock avoided", | |
177 EDEADLOCK - APPLICATION_ERROR: "resource deadlock avoided", | |
178 EDESTADDRREQ - APPLICATION_ERROR: "destination address required", | |
179 EDOM - APPLICATION_ERROR: "numerical argument out of domain", | |
180 EDOTDOT - APPLICATION_ERROR: "RFS specific error", | |
181 EDQUOT - APPLICATION_ERROR: "disk quota exceeded", | |
182 EEXIST - APPLICATION_ERROR: "file exists", | |
183 EFAULT - APPLICATION_ERROR: "bad address", | |
184 EFBIG - APPLICATION_ERROR: "file too large", | |
185 EHOSTDOWN - APPLICATION_ERROR: "host is down", | |
186 EHOSTUNREACH - APPLICATION_ERROR: "no route to host", | |
187 EIDRM - APPLICATION_ERROR: "identifier removed", | |
188 EILSEQ - APPLICATION_ERROR: "invalid or incomplete multibyte or
wide character", | |
189 EINPROGRESS - APPLICATION_ERROR: "operation now in progress", | |
190 EINTR - APPLICATION_ERROR: "interrupted system call", | |
191 EINVAL - APPLICATION_ERROR: "invalid argument", | |
192 EIO - APPLICATION_ERROR: "input/output error", | |
193 EISCONN - APPLICATION_ERROR: "transport endpoint is already conn
ected", | |
194 EISDIR - APPLICATION_ERROR: "is a directory", | |
195 EISNAM - APPLICATION_ERROR: "is a named type file", | |
196 EKEYEXPIRED - APPLICATION_ERROR: "key has expired", | |
197 EKEYREJECTED - APPLICATION_ERROR: "key was rejected by service", | |
198 EKEYREVOKED - APPLICATION_ERROR: "key has been revoked", | |
199 EL2HLT - APPLICATION_ERROR: "level 2 halted", | |
200 EL2NSYNC - APPLICATION_ERROR: "level 2 not synchronized", | |
201 EL3HLT - APPLICATION_ERROR: "level 3 halted", | |
202 EL3RST - APPLICATION_ERROR: "level 3 reset", | |
203 ELIBACC - APPLICATION_ERROR: "can not access a needed shared lib
rary", | |
204 ELIBBAD - APPLICATION_ERROR: "accessing a corrupted shared libra
ry", | |
205 ELIBEXEC - APPLICATION_ERROR: "cannot exec a shared library direc
tly", | |
206 ELIBMAX - APPLICATION_ERROR: "attempting to link in too many sha
red libraries", | |
207 ELIBSCN - APPLICATION_ERROR: ".lib section in a.out corrupted", | |
208 ELNRNG - APPLICATION_ERROR: "link number out of range", | |
209 ELOOP - APPLICATION_ERROR: "too many levels of symbolic links"
, | |
210 EMEDIUMTYPE - APPLICATION_ERROR: "wrong medium type", | |
211 EMFILE - APPLICATION_ERROR: "too many open files", | |
212 EMLINK - APPLICATION_ERROR: "too many links", | |
213 EMSGSIZE - APPLICATION_ERROR: "message too long", | |
214 EMULTIHOP - APPLICATION_ERROR: "multihop attempted", | |
215 ENAMETOOLONG - APPLICATION_ERROR: "file name too long", | |
216 ENAVAIL - APPLICATION_ERROR: "no XENIX semaphores available", | |
217 ENETDOWN - APPLICATION_ERROR: "network is down", | |
218 ENETRESET - APPLICATION_ERROR: "network dropped connection on rese
t", | |
219 ENETUNREACH - APPLICATION_ERROR: "network is unreachable", | |
220 ENFILE - APPLICATION_ERROR: "too many open files in system", | |
221 ENOANO - APPLICATION_ERROR: "no anode", | |
222 ENOBUFS - APPLICATION_ERROR: "no buffer space available", | |
223 ENOCSI - APPLICATION_ERROR: "no CSI structure available", | |
224 ENODATA - APPLICATION_ERROR: "no data available", | |
225 ENODEV - APPLICATION_ERROR: "no such device", | |
226 ENOEXEC - APPLICATION_ERROR: "exec format error", | |
227 ENOKEY - APPLICATION_ERROR: "required key not available", | |
228 ENOLCK - APPLICATION_ERROR: "no locks available", | |
229 ENOLINK - APPLICATION_ERROR: "link has been severed", | |
230 ENOMEDIUM - APPLICATION_ERROR: "no medium found", | |
231 ENOMEM - APPLICATION_ERROR: "cannot allocate memory", | |
232 ENOMSG - APPLICATION_ERROR: "no message of desired type", | |
233 ENONET - APPLICATION_ERROR: "machine is not on the network", | |
234 ENOPKG - APPLICATION_ERROR: "package not installed", | |
235 ENOPROTOOPT - APPLICATION_ERROR: "protocol not available", | |
236 ENOSPC - APPLICATION_ERROR: "no space left on device", | |
237 ENOSR - APPLICATION_ERROR: "out of streams resources", | |
238 ENOSTR - APPLICATION_ERROR: "device not a stream", | |
239 ENOSYS - APPLICATION_ERROR: "function not implemented", | |
240 ENOTBLK - APPLICATION_ERROR: "block device required", | |
241 ENOTCONN - APPLICATION_ERROR: "transport endpoint is not connecte
d", | |
242 ENOTEMPTY - APPLICATION_ERROR: "directory not empty", | |
243 ENOTNAM - APPLICATION_ERROR: "not a XENIX named type file", | |
244 ENOTRECOVERABLE - APPLICATION_ERROR: "state not recoverable", | |
245 ENOTSOCK - APPLICATION_ERROR: "socket operation on non-socket", | |
246 ENOTSUP - APPLICATION_ERROR: "operation not supported", | |
247 ENOTTY - APPLICATION_ERROR: "inappropriate ioctl for device", | |
248 ENOTUNIQ - APPLICATION_ERROR: "name not unique on network", | |
249 ENXIO - APPLICATION_ERROR: "no such device or address", | |
250 EOPNOTSUPP - APPLICATION_ERROR: "operation not supported", | |
251 EOVERFLOW - APPLICATION_ERROR: "value too large for defined data t
ype", | |
252 EOWNERDEAD - APPLICATION_ERROR: "owner died", | |
253 EPERM - APPLICATION_ERROR: "operation not permitted", | |
254 EPFNOSUPPORT - APPLICATION_ERROR: "protocol family not supported", | |
255 EPIPE - APPLICATION_ERROR: "broken pipe", | |
256 EPROTO - APPLICATION_ERROR: "protocol error", | |
257 EPROTONOSUPPORT - APPLICATION_ERROR: "protocol not supported", | |
258 EPROTOTYPE - APPLICATION_ERROR: "protocol wrong type for socket", | |
259 ERANGE - APPLICATION_ERROR: "numerical result out of range", | |
260 EREMCHG - APPLICATION_ERROR: "remote address changed", | |
261 EREMOTE - APPLICATION_ERROR: "object is remote", | |
262 EREMOTEIO - APPLICATION_ERROR: "remote I/O error", | |
263 ERESTART - APPLICATION_ERROR: "interrupted system call should be
restarted", | |
264 EROFS - APPLICATION_ERROR: "read-only file system", | |
265 ESHUTDOWN - APPLICATION_ERROR: "cannot send after transport endpoi
nt shutdown", | |
266 ESOCKTNOSUPPORT - APPLICATION_ERROR: "socket type not supported", | |
267 ESPIPE - APPLICATION_ERROR: "illegal seek", | |
268 ESRCH - APPLICATION_ERROR: "no such process", | |
269 ESRMNT - APPLICATION_ERROR: "srmount error", | |
270 ESTALE - APPLICATION_ERROR: "stale NFS file handle", | |
271 ESTRPIPE - APPLICATION_ERROR: "streams pipe error", | |
272 ETIME - APPLICATION_ERROR: "timer expired", | |
273 ETIMEDOUT - APPLICATION_ERROR: "connection timed out", | |
274 ETOOMANYREFS - APPLICATION_ERROR: "too many references: cannot splice
", | |
275 ETXTBSY - APPLICATION_ERROR: "text file busy", | |
276 EUCLEAN - APPLICATION_ERROR: "structure needs cleaning", | |
277 EUNATCH - APPLICATION_ERROR: "protocol driver not attached", | |
278 EUSERS - APPLICATION_ERROR: "too many users", | |
279 EWOULDBLOCK - APPLICATION_ERROR: "resource temporarily unavailable", | |
280 EXDEV - APPLICATION_ERROR: "invalid cross-device link", | |
281 EXFULL - APPLICATION_ERROR: "exchange full", | |
282 EWINDOWS - APPLICATION_ERROR: "not supported by windows", | |
283 } | |
LEFT | RIGHT |