30 #ifndef _GLIBCXX_ERROR_CONSTANTS
31 #define _GLIBCXX_ERROR_CONSTANTS 1
36 namespace std _GLIBCXX_VISIBILITY(default)
38 _GLIBCXX_BEGIN_NAMESPACE_VERSION
42 address_family_not_supported = EAFNOSUPPORT,
43 address_in_use = EADDRINUSE,
44 address_not_available = EADDRNOTAVAIL,
45 already_connected = EISCONN,
46 argument_list_too_long = E2BIG,
47 argument_out_of_domain = EDOM,
49 bad_file_descriptor = EBADF,
51 #ifdef _GLIBCXX_HAVE_EBADMSG
52 bad_message = EBADMSG,
56 connection_aborted = ECONNABORTED,
57 connection_already_in_progress = EALREADY,
58 connection_refused = ECONNREFUSED,
59 connection_reset = ECONNRESET,
60 cross_device_link = EXDEV,
61 destination_address_required = EDESTADDRREQ,
62 device_or_resource_busy = EBUSY,
63 directory_not_empty = ENOTEMPTY,
64 executable_format_error = ENOEXEC,
66 file_too_large = EFBIG,
67 filename_too_long = ENAMETOOLONG,
68 function_not_supported = ENOSYS,
69 host_unreachable = EHOSTUNREACH,
71 #ifdef _GLIBCXX_HAVE_EIDRM
72 identifier_removed = EIDRM,
75 illegal_byte_sequence = EILSEQ,
76 inappropriate_io_control_operation = ENOTTY,
78 invalid_argument = EINVAL,
79 invalid_seek = ESPIPE,
81 is_a_directory = EISDIR,
82 message_size = EMSGSIZE,
83 network_down = ENETDOWN,
84 network_reset = ENETRESET,
85 network_unreachable = ENETUNREACH,
86 no_buffer_space = ENOBUFS,
87 no_child_process = ECHILD,
89 #ifdef _GLIBCXX_HAVE_ENOLINK
93 no_lock_available = ENOLCK,
95 #ifdef _GLIBCXX_HAVE_ENODATA
96 no_message_available = ENODATA,
100 no_protocol_option = ENOPROTOOPT,
101 no_space_on_device = ENOSPC,
103 #ifdef _GLIBCXX_HAVE_ENOSR
104 no_stream_resources = ENOSR,
107 no_such_device_or_address = ENXIO,
108 no_such_device = ENODEV,
109 no_such_file_or_directory = ENOENT,
110 no_such_process = ESRCH,
111 not_a_directory = ENOTDIR,
112 not_a_socket = ENOTSOCK,
114 #ifdef _GLIBCXX_HAVE_ENOSTR
115 not_a_stream = ENOSTR,
118 not_connected = ENOTCONN,
119 not_enough_memory = ENOMEM,
121 #ifdef _GLIBCXX_HAVE_ENOTSUP
122 not_supported = ENOTSUP,
125 #ifdef _GLIBCXX_HAVE_ECANCELED
126 operation_canceled = ECANCELED,
129 operation_in_progress = EINPROGRESS,
130 operation_not_permitted = EPERM,
131 operation_not_supported = EOPNOTSUPP,
132 operation_would_block = EWOULDBLOCK,
134 #ifdef _GLIBCXX_HAVE_EOWNERDEAD
135 owner_dead = EOWNERDEAD,
138 permission_denied = EACCES,
140 #ifdef _GLIBCXX_HAVE_EPROTO
141 protocol_error = EPROTO,
144 protocol_not_supported = EPROTONOSUPPORT,
145 read_only_file_system = EROFS,
146 resource_deadlock_would_occur = EDEADLK,
147 resource_unavailable_try_again = EAGAIN,
148 result_out_of_range = ERANGE,
150 #ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
151 state_not_recoverable = ENOTRECOVERABLE,
154 #ifdef _GLIBCXX_HAVE_ETIME
155 stream_timeout = ETIME,
158 #ifdef _GLIBCXX_HAVE_ETXTBSY
159 text_file_busy = ETXTBSY,
162 timed_out = ETIMEDOUT,
163 too_many_files_open_in_system = ENFILE,
164 too_many_files_open = EMFILE,
165 too_many_links = EMLINK,
166 too_many_symbolic_link_levels = ELOOP,
168 #ifdef _GLIBCXX_HAVE_EOVERFLOW
169 value_too_large = EOVERFLOW,
172 wrong_protocol_type = EPROTOTYPE
175 _GLIBCXX_END_NAMESPACE_VERSION