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
15 // supply errno values likely to be missing, particularly on Windows
18 #define EAFNOSUPPORT 9901
22 #define EADDRINUSE 9902
26 #define EADDRNOTAVAIL 9903
38 #define ECONNABORTED 9906
46 #define ECONNREFUSED 9908
50 #define ECONNRESET 9909
54 #define EDESTADDRREQ 9910
58 #define EHOSTUNREACH 9911
74 #define ENETRESET 9915
78 #define ENETUNREACH 9916
98 #define ENOPROTOOPT 9921
106 #define ENOTSOCK 9923
114 #define ENOTCONN 9925
122 #define ECANCELED 9927
126 #define EINPROGRESS 9928
130 #define EOPNOTSUPP 9929
134 #define EWOULDBLOCK 9930
138 #define EOWNERDEAD 9931
145 #ifndef EPROTONOSUPPORT
146 #define EPROTONOSUPPORT 9933
149 #ifndef ENOTRECOVERABLE
150 #define ENOTRECOVERABLE 9934
162 #define ETIMEDOUT 9938
170 #define EOVERFLOW 9940
174 #define EPROTOTYPE 9941
193 // Windows Mobile doesn't appear to define these:
224 #define ENOTEMPTY 9953
240 #define ENAMETOOLONG 9957
331 #endif // include guard