File indexing completed on 2024-11-16 09:34:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_SYSTEM_LINUX_ERROR_HPP
0011 #define BOOST_SYSTEM_LINUX_ERROR_HPP
0012
0013
0014
0015
0016 #if defined(linux) || defined(__linux) || defined(__linux__)
0017
0018 #include <boost/system/error_code.hpp>
0019
0020 namespace boost
0021 {
0022 namespace system
0023 {
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 namespace linux_error
0034 {
0035 enum linux_errno
0036 {
0037 advertise_error = EADV,
0038 bad_exchange = EBADE,
0039 bad_file_number = EBADFD,
0040 bad_font_format = EBFONT,
0041 bad_request_code = EBADRQC,
0042 bad_request_descriptor = EBADR,
0043 bad_slot = EBADSLT,
0044 channel_range = ECHRNG,
0045 communication_error = ECOMM,
0046 dot_dot_error = EDOTDOT,
0047 exchange_full = EXFULL,
0048 host_down = EHOSTDOWN,
0049 is_named_file_type= EISNAM,
0050 key_expired = EKEYEXPIRED,
0051 key_rejected = EKEYREJECTED,
0052 key_revoked = EKEYREVOKED,
0053 level2_halt= EL2HLT,
0054 level2_no_syncronized= EL2NSYNC,
0055 level3_halt = EL3HLT,
0056 level3_reset = EL3RST,
0057 link_range = ELNRNG,
0058 medium_type = EMEDIUMTYPE,
0059 no_anode= ENOANO,
0060 no_block_device = ENOTBLK,
0061 no_csi = ENOCSI,
0062 no_key = ENOKEY,
0063 no_medium = ENOMEDIUM,
0064 no_network = ENONET,
0065 no_package = ENOPKG,
0066 not_avail = ENAVAIL,
0067 not_named_file_type= ENOTNAM,
0068 not_recoverable = ENOTRECOVERABLE,
0069 not_unique = ENOTUNIQ,
0070 owner_dead = EOWNERDEAD,
0071 protocol_no_supported = EPFNOSUPPORT,
0072 remote_address_changed = EREMCHG,
0073 remote_io_error = EREMOTEIO,
0074 remote_object = EREMOTE,
0075 restart_needed = ERESTART,
0076 shared_library_access = ELIBACC,
0077 shared_library_bad = ELIBBAD,
0078 shared_library_execute = ELIBEXEC,
0079 shared_library_max_ = ELIBMAX,
0080 shared_library_section= ELIBSCN,
0081 shutdown = ESHUTDOWN,
0082 socket_type_not_supported = ESOCKTNOSUPPORT,
0083 srmount_error = ESRMNT,
0084 stream_pipe_error = ESTRPIPE,
0085 too_many_references = ETOOMANYREFS,
0086 too_many_users = EUSERS,
0087 unattached = EUNATCH,
0088 unclean = EUCLEAN
0089 };
0090 }
0091
0092 # ifdef BOOST_SYSTEM_ENABLE_DEPRECATED
0093 namespace Linux = linux_error;
0094 # endif
0095
0096 template<> struct is_error_code_enum<linux_error::linux_errno>
0097 { static const bool value = true; };
0098
0099 namespace linux_error
0100 {
0101 inline error_code make_error_code( linux_errno e )
0102 { return error_code( e, system_category() ); }
0103 }
0104
0105 }
0106 }
0107
0108 #endif
0109
0110 #endif