fix doc example typo
[boost.git] / boost / cerrno.hpp
blob6f2669846d361e670a9114285f63e7ede69e7766
1 // Boost cerrno.hpp header -------------------------------------------------//
3 // Copyright Beman Dawes 2005.
4 // Use, modification, and distribution is subject to the Boost Software
5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // See library home page at http://www.boost.org/libs/system
10 #ifndef BOOST_CERRNO_HPP
11 #define BOOST_CERRNO_HPP
13 #include <cerrno>
15 // supply errno values likely to be missing, particularly on Windows
17 #ifndef EAFNOSUPPORT
18 #define EAFNOSUPPORT 9901
19 #endif
21 #ifndef EADDRINUSE
22 #define EADDRINUSE 9902
23 #endif
25 #ifndef EADDRNOTAVAIL
26 #define EADDRNOTAVAIL 9903
27 #endif
29 #ifndef EISCONN
30 #define EISCONN 9904
31 #endif
33 #ifndef EBADMSG
34 #define EBADMSG 9905
35 #endif
37 #ifndef ECONNABORTED
38 #define ECONNABORTED 9906
39 #endif
41 #ifndef EALREADY
42 #define EALREADY 9907
43 #endif
45 #ifndef ECONNREFUSED
46 #define ECONNREFUSED 9908
47 #endif
49 #ifndef ECONNRESET
50 #define ECONNRESET 9909
51 #endif
53 #ifndef EDESTADDRREQ
54 #define EDESTADDRREQ 9910
55 #endif
57 #ifndef EHOSTUNREACH
58 #define EHOSTUNREACH 9911
59 #endif
61 #ifndef EIDRM
62 #define EIDRM 9912
63 #endif
65 #ifndef EMSGSIZE
66 #define EMSGSIZE 9913
67 #endif
69 #ifndef ENETDOWN
70 #define ENETDOWN 9914
71 #endif
73 #ifndef ENETRESET
74 #define ENETRESET 9915
75 #endif
77 #ifndef ENETUNREACH
78 #define ENETUNREACH 9916
79 #endif
81 #ifndef ENOBUFS
82 #define ENOBUFS 9917
83 #endif
85 #ifndef ENOLINK
86 #define ENOLINK 9918
87 #endif
89 #ifndef ENODATA
90 #define ENODATA 9919
91 #endif
93 #ifndef ENOMSG
94 #define ENOMSG 9920
95 #endif
97 #ifndef ENOPROTOOPT
98 #define ENOPROTOOPT 9921
99 #endif
101 #ifndef ENOSR
102 #define ENOSR 9922
103 #endif
105 #ifndef ENOTSOCK
106 #define ENOTSOCK 9923
107 #endif
109 #ifndef ENOSTR
110 #define ENOSTR 9924
111 #endif
113 #ifndef ENOTCONN
114 #define ENOTCONN 9925
115 #endif
117 #ifndef ENOTSUP
118 #define ENOTSUP 9926
119 #endif
121 #ifndef ECANCELED
122 #define ECANCELED 9927
123 #endif
125 #ifndef EINPROGRESS
126 #define EINPROGRESS 9928
127 #endif
129 #ifndef EOPNOTSUPP
130 #define EOPNOTSUPP 9929
131 #endif
133 #ifndef EWOULDBLOCK
134 #define EWOULDBLOCK 9930
135 #endif
137 #ifndef EOWNERDEAD
138 #define EOWNERDEAD 9931
139 #endif
141 #ifndef EPROTO
142 #define EPROTO 9932
143 #endif
145 #ifndef EPROTONOSUPPORT
146 #define EPROTONOSUPPORT 9933
147 #endif
149 #ifndef ENOTRECOVERABLE
150 #define ENOTRECOVERABLE 9934
151 #endif
153 #ifndef ETIME
154 #define ETIME 9935
155 #endif
157 #ifndef ETXTBSY
158 #define ETXTBSY 9936
159 #endif
161 #ifndef ETIMEDOUT
162 #define ETIMEDOUT 9938
163 #endif
165 #ifndef ELOOP
166 #define ELOOP 9939
167 #endif
169 #ifndef EOVERFLOW
170 #define EOVERFLOW 9940
171 #endif
173 #ifndef EPROTOTYPE
174 #define EPROTOTYPE 9941
175 #endif
177 #ifndef ENOSYS
178 #define ENOSYS 9942
179 #endif
181 #ifndef EINVAL
182 #define EINVAL 9943
183 #endif
185 #ifndef ERANGE
186 #define ERANGE 9944
187 #endif
189 #ifndef EILSEQ
190 #define EILSEQ 9945
191 #endif
193 // Windows Mobile doesn't appear to define these:
195 #ifndef E2BIG
196 #define E2BIG 9946
197 #endif
199 #ifndef EDOM
200 #define EDOM 9947
201 #endif
203 #ifndef EFAULT
204 #define EFAULT 9948
205 #endif
207 #ifndef EBADF
208 #define EBADF 9949
209 #endif
211 #ifndef EPIPE
212 #define EPIPE 9950
213 #endif
215 #ifndef EXDEV
216 #define EXDEV 9951
217 #endif
219 #ifndef EBUSY
220 #define EBUSY 9952
221 #endif
223 #ifndef ENOTEMPTY
224 #define ENOTEMPTY 9953
225 #endif
227 #ifndef ENOEXEC
228 #define ENOEXEC 9954
229 #endif
231 #ifndef EEXIST
232 #define EEXIST 9955
233 #endif
235 #ifndef EFBIG
236 #define EFBIG 9956
237 #endif
239 #ifndef ENAMETOOLONG
240 #define ENAMETOOLONG 9957
241 #endif
243 #ifndef ENOTTY
244 #define ENOTTY 9958
245 #endif
247 #ifndef EINTR
248 #define EINTR 9959
249 #endif
251 #ifndef ESPIPE
252 #define ESPIPE 9960
253 #endif
255 #ifndef EIO
256 #define EIO 9961
257 #endif
259 #ifndef EISDIR
260 #define EISDIR 9962
261 #endif
263 #ifndef ECHILD
264 #define ECHILD 9963
265 #endif
267 #ifndef ENOLCK
268 #define ENOLCK 9964
269 #endif
271 #ifndef ENOSPC
272 #define ENOSPC 9965
273 #endif
275 #ifndef ENXIO
276 #define ENXIO 9966
277 #endif
279 #ifndef ENODEV
280 #define ENODEV 9967
281 #endif
283 #ifndef ENOENT
284 #define ENOENT 9968
285 #endif
287 #ifndef ESRCH
288 #define ESRCH 9969
289 #endif
291 #ifndef ENOTDIR
292 #define ENOTDIR 9970
293 #endif
295 #ifndef ENOMEM
296 #define ENOMEM 9971
297 #endif
299 #ifndef EPERM
300 #define EPERM 9972
301 #endif
303 #ifndef EACCES
304 #define EACCES 9973
305 #endif
307 #ifndef EROFS
308 #define EROFS 9974
309 #endif
311 #ifndef EDEADLK
312 #define EDEADLK 9975
313 #endif
315 #ifndef EAGAIN
316 #define EAGAIN 9976
317 #endif
319 #ifndef ENFILE
320 #define ENFILE 9977
321 #endif
323 #ifndef EMFILE
324 #define EMFILE 9978
325 #endif
327 #ifndef EMLINK
328 #define EMLINK 9979
329 #endif
331 #endif // include guard