1 // Boost cerrno.hpp header -------------------------------------------------//
\r
3 // Copyright Beman Dawes 2005.
\r
4 // Use, modification, and distribution is subject to the Boost Software
\r
5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
\r
6 // http://www.boost.org/LICENSE_1_0.txt)
\r
8 // See library home page at http://www.boost.org/libs/system
\r
10 #ifndef BOOST_CERRNO_HPP
\r
11 #define BOOST_CERRNO_HPP
\r
15 // supply errno values likely to be missing, particularly on Windows
\r
17 #ifndef EAFNOSUPPORT
\r
18 #define EAFNOSUPPORT 9901
\r
22 #define EADDRINUSE 9902
\r
25 #ifndef EADDRNOTAVAIL
\r
26 #define EADDRNOTAVAIL 9903
\r
30 #define EISCONN 9904
\r
34 #define EBADMSG 9905
\r
37 #ifndef ECONNABORTED
\r
38 #define ECONNABORTED 9906
\r
42 #define EALREADY 9907
\r
45 #ifndef ECONNREFUSED
\r
46 #define ECONNREFUSED 9908
\r
50 #define ECONNRESET 9909
\r
53 #ifndef EDESTADDRREQ
\r
54 #define EDESTADDRREQ 9910
\r
57 #ifndef EHOSTUNREACH
\r
58 #define EHOSTUNREACH 9911
\r
66 #define EMSGSIZE 9913
\r
70 #define ENETDOWN 9914
\r
74 #define ENETRESET 9915
\r
78 #define ENETUNREACH 9916
\r
82 #define ENOBUFS 9917
\r
86 #define ENOLINK 9918
\r
90 #define ENODATA 9919
\r
98 #define ENOPROTOOPT 9921
\r
106 #define ENOTSOCK 9923
\r
110 #define ENOSTR 9924
\r
114 #define ENOTCONN 9925
\r
118 #define ENOTSUP 9926
\r
122 #define ECANCELED 9927
\r
125 #ifndef EINPROGRESS
\r
126 #define EINPROGRESS 9928
\r
130 #define EOPNOTSUPP 9929
\r
133 #ifndef EWOULDBLOCK
\r
134 #define EWOULDBLOCK 9930
\r
138 #define EOWNERDEAD 9931
\r
142 #define EPROTO 9932
\r
145 #ifndef EPROTONOSUPPORT
\r
146 #define EPROTONOSUPPORT 9933
\r
149 #ifndef ENOTRECOVERABLE
\r
150 #define ENOTRECOVERABLE 9934
\r
158 #define ETXTBSY 9936
\r
162 #define ETIMEDOUT 9938
\r
170 #define EOVERFLOW 9940
\r
174 #define EPROTOTYPE 9941
\r
178 #define ENOSYS 9942
\r
182 #define EINVAL 9943
\r
186 #define ERANGE 9944
\r
190 #define EILSEQ 9945
\r
193 // Windows Mobile doesn't appear to define these:
\r
204 #define EFAULT 9948
\r
224 #define ENOTEMPTY 9953
\r
228 #define ENOEXEC 9954
\r
232 #define EEXIST 9955
\r
239 #ifndef ENAMETOOLONG
\r
240 #define ENAMETOOLONG 9957
\r
244 #define ENOTTY 9958
\r
252 #define ESPIPE 9960
\r
260 #define EISDIR 9962
\r
264 #define ECHILD 9963
\r
268 #define ENOLCK 9964
\r
272 #define ENOSPC 9965
\r
280 #define ENODEV 9967
\r
284 #define ENOENT 9968
\r
292 #define ENOTDIR 9970
\r
296 #define ENOMEM 9971
\r
304 #define EACCES 9973
\r
312 #define EDEADLK 9975
\r
316 #define EAGAIN 9976
\r
320 #define ENFILE 9977
\r
324 #define EMFILE 9978
\r
328 #define EMLINK 9979
\r
331 #endif // include guard
\r