File indexing completed on 2025-01-18 09:52:35
0001 #ifndef BOOST_SYSTEM_DETAIL_ERRC_HPP_INCLUDED
0002 #define BOOST_SYSTEM_DETAIL_ERRC_HPP_INCLUDED
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <boost/system/is_error_condition_enum.hpp>
0014 #include <boost/system/detail/cerrno.hpp>
0015
0016 namespace boost
0017 {
0018
0019 namespace system
0020 {
0021
0022 namespace errc
0023 {
0024
0025 enum errc_t
0026 {
0027 success = 0,
0028 address_family_not_supported = EAFNOSUPPORT,
0029 address_in_use = EADDRINUSE,
0030 address_not_available = EADDRNOTAVAIL,
0031 already_connected = EISCONN,
0032 argument_list_too_long = E2BIG,
0033 argument_out_of_domain = EDOM,
0034 bad_address = EFAULT,
0035 bad_file_descriptor = EBADF,
0036 bad_message = EBADMSG,
0037 broken_pipe = EPIPE,
0038 connection_aborted = ECONNABORTED,
0039 connection_already_in_progress = EALREADY,
0040 connection_refused = ECONNREFUSED,
0041 connection_reset = ECONNRESET,
0042 cross_device_link = EXDEV,
0043 destination_address_required = EDESTADDRREQ,
0044 device_or_resource_busy = EBUSY,
0045 directory_not_empty = ENOTEMPTY,
0046 executable_format_error = ENOEXEC,
0047 file_exists = EEXIST,
0048 file_too_large = EFBIG,
0049 filename_too_long = ENAMETOOLONG,
0050 function_not_supported = ENOSYS,
0051 host_unreachable = EHOSTUNREACH,
0052 identifier_removed = EIDRM,
0053 illegal_byte_sequence = EILSEQ,
0054 inappropriate_io_control_operation = ENOTTY,
0055 interrupted = EINTR,
0056 invalid_argument = EINVAL,
0057 invalid_seek = ESPIPE,
0058 io_error = EIO,
0059 is_a_directory = EISDIR,
0060 message_size = EMSGSIZE,
0061 network_down = ENETDOWN,
0062 network_reset = ENETRESET,
0063 network_unreachable = ENETUNREACH,
0064 no_buffer_space = ENOBUFS,
0065 no_child_process = ECHILD,
0066 no_link = ENOLINK,
0067 no_lock_available = ENOLCK,
0068 no_message_available = ENODATA,
0069 no_message = ENOMSG,
0070 no_protocol_option = ENOPROTOOPT,
0071 no_space_on_device = ENOSPC,
0072 no_stream_resources = ENOSR,
0073 no_such_device_or_address = ENXIO,
0074 no_such_device = ENODEV,
0075 no_such_file_or_directory = ENOENT,
0076 no_such_process = ESRCH,
0077 not_a_directory = ENOTDIR,
0078 not_a_socket = ENOTSOCK,
0079 not_a_stream = ENOSTR,
0080 not_connected = ENOTCONN,
0081 not_enough_memory = ENOMEM,
0082 not_supported = ENOTSUP,
0083 operation_canceled = ECANCELED,
0084 operation_in_progress = EINPROGRESS,
0085 operation_not_permitted = EPERM,
0086 operation_not_supported = EOPNOTSUPP,
0087 operation_would_block = EWOULDBLOCK,
0088 owner_dead = EOWNERDEAD,
0089 permission_denied = EACCES,
0090 protocol_error = EPROTO,
0091 protocol_not_supported = EPROTONOSUPPORT,
0092 read_only_file_system = EROFS,
0093 resource_deadlock_would_occur = EDEADLK,
0094 resource_unavailable_try_again = EAGAIN,
0095 result_out_of_range = ERANGE,
0096 state_not_recoverable = ENOTRECOVERABLE,
0097 stream_timeout = ETIME,
0098 text_file_busy = ETXTBSY,
0099 timed_out = ETIMEDOUT,
0100 too_many_files_open_in_system = ENFILE,
0101 too_many_files_open = EMFILE,
0102 too_many_links = EMLINK,
0103 too_many_symbolic_link_levels = ELOOP,
0104 value_too_large = EOVERFLOW,
0105 wrong_protocol_type = EPROTOTYPE
0106 };
0107
0108 }
0109
0110 #ifdef BOOST_SYSTEM_ENABLE_DEPRECATED
0111
0112 namespace posix = errc;
0113 namespace posix_error = errc;
0114
0115 #endif
0116
0117 template<> struct is_error_condition_enum<errc::errc_t>
0118 {
0119 static const bool value = true;
0120 };
0121
0122 }
0123
0124 }
0125
0126 #endif