annotate DEPENDENCIES/generic/include/boost/system/cygwin_error.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // boost/system/cygwin_error.hpp -------------------------------------------//
Chris@16 2
Chris@16 3 // Copyright Beman Dawes 2007
Chris@16 4
Chris@16 5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7
Chris@16 8 // See library home page at http://www.boost.org/libs/system
Chris@16 9
Chris@16 10 #ifndef BOOST_CYGWIN_ERROR_HPP
Chris@16 11 #define BOOST_CYGWIN_ERROR_HPP
Chris@16 12
Chris@16 13 // This header is effectively empty for compiles on operating systems where
Chris@16 14 // it is not applicable.
Chris@16 15
Chris@16 16 # ifdef __CYGWIN__
Chris@16 17
Chris@16 18 #include <boost/system/error_code.hpp>
Chris@16 19
Chris@16 20 namespace boost
Chris@16 21 {
Chris@16 22 namespace system
Chris@16 23 {
Chris@16 24 // To construct an error_code after a API error:
Chris@16 25 //
Chris@16 26 // error_code( errno, system_category() )
Chris@16 27
Chris@16 28 // User code should use the portable "posix" enums for POSIX errors; this
Chris@16 29 // allows such code to be portable to non-POSIX systems. For the non-POSIX
Chris@16 30 // errno values that POSIX-based systems typically provide in addition to
Chris@16 31 // POSIX values, use the system specific enums below.
Chris@16 32
Chris@16 33 namespace cygwin_error
Chris@16 34 {
Chris@16 35 enum cygwin_errno
Chris@16 36 {
Chris@16 37 no_net = ENONET,
Chris@16 38 no_package = ENOPKG,
Chris@16 39 no_share = ENOSHARE
Chris@16 40 };
Chris@16 41 } // namespace cygwin_error
Chris@16 42
Chris@16 43 template<> struct is_error_code_enum<cygwin_error::cygwin_errno>
Chris@16 44 { static const bool value = true; };
Chris@16 45
Chris@16 46 namespace cygwin_error
Chris@16 47 {
Chris@16 48 inline error_code make_error_code( cygwin_errno e )
Chris@16 49 { return error_code( e, system_category() ); }
Chris@16 50 }
Chris@16 51 }
Chris@16 52 }
Chris@16 53
Chris@16 54 #endif // __CYGWIN__
Chris@16 55
Chris@16 56 #endif // BOOST_CYGWIN_ERROR_HPP