[DJGPP] Update config/os/djgpp/error_constants.h
* config/os/djgpp/error_constants.h: update according to DJGPP errno macros. From-SVN: r231801
This commit is contained in:
parent
45fbe8e9e2
commit
c1dd339fa0
2 changed files with 80 additions and 24 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
|
||||||
|
|
||||||
|
* config/os/djgpp/error_constants.h: update according to DJGPP errno
|
||||||
|
macros.
|
||||||
|
|
||||||
2015-12-15 Jonathan Wakely <jwakely@redhat.com>
|
2015-12-15 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/68921
|
PR libstdc++/68921
|
||||||
|
|
|
@ -37,8 +37,6 @@ namespace std _GLIBCXX_VISIBILITY(default)
|
||||||
{
|
{
|
||||||
_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
|
|
||||||
// Most of the commented-out error codes are socket-related and could be
|
|
||||||
// replaced by Winsock WSA-prefixed equivalents.
|
|
||||||
enum class errc
|
enum class errc
|
||||||
{
|
{
|
||||||
// address_family_not_supported = EAFNOSUPPORT,
|
// address_family_not_supported = EAFNOSUPPORT,
|
||||||
|
@ -49,13 +47,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
argument_out_of_domain = EDOM,
|
argument_out_of_domain = EDOM,
|
||||||
bad_address = EFAULT,
|
bad_address = EFAULT,
|
||||||
bad_file_descriptor = EBADF,
|
bad_file_descriptor = EBADF,
|
||||||
// bad_message = EBADMSG,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_EBADMSG
|
||||||
|
bad_message = EBADMSG,
|
||||||
|
#endif
|
||||||
|
|
||||||
broken_pipe = EPIPE,
|
broken_pipe = EPIPE,
|
||||||
// connection_aborted = ECONNABORTED,
|
// connection_aborted = ECONNABORTED,
|
||||||
// connection_already_in_progress = EALREADY,
|
// connection_already_in_progress = EALREADY,
|
||||||
// connection_refused = ECONNREFUSED,
|
// connection_refused = ECONNREFUSED,
|
||||||
// connection_reset = ECONNRESET,
|
// connection_reset = ECONNRESET,
|
||||||
// cross_device_link = EXDEV,
|
cross_device_link = EXDEV,
|
||||||
// destination_address_required = EDESTADDRREQ,
|
// destination_address_required = EDESTADDRREQ,
|
||||||
device_or_resource_busy = EBUSY,
|
device_or_resource_busy = EBUSY,
|
||||||
directory_not_empty = ENOTEMPTY,
|
directory_not_empty = ENOTEMPTY,
|
||||||
|
@ -65,7 +67,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
filename_too_long = ENAMETOOLONG,
|
filename_too_long = ENAMETOOLONG,
|
||||||
function_not_supported = ENOSYS,
|
function_not_supported = ENOSYS,
|
||||||
// host_unreachable = EHOSTUNREACH,
|
// host_unreachable = EHOSTUNREACH,
|
||||||
// identifier_removed = EIDRM,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_EIDRM
|
||||||
|
identifier_removed = EIDRM,
|
||||||
|
#endif
|
||||||
|
|
||||||
illegal_byte_sequence = EILSEQ,
|
illegal_byte_sequence = EILSEQ,
|
||||||
inappropriate_io_control_operation = ENOTTY,
|
inappropriate_io_control_operation = ENOTTY,
|
||||||
interrupted = EINTR,
|
interrupted = EINTR,
|
||||||
|
@ -78,46 +84,91 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
// network_reset = ENETRESET,
|
// network_reset = ENETRESET,
|
||||||
// network_unreachable = ENETUNREACH,
|
// network_unreachable = ENETUNREACH,
|
||||||
// no_buffer_space = ENOBUFS,
|
// no_buffer_space = ENOBUFS,
|
||||||
// no_child_process = ECHILD,
|
no_child_process = ECHILD,
|
||||||
// no_link = ENOLINK,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ENOLINK
|
||||||
|
no_link = ENOLINK,
|
||||||
|
#endif
|
||||||
|
|
||||||
no_lock_available = ENOLCK,
|
no_lock_available = ENOLCK,
|
||||||
// no_message_available = ENODATA,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ENODATA
|
||||||
|
no_message_available = ENODATA,
|
||||||
|
#endif
|
||||||
|
|
||||||
// no_message = ENOMSG,
|
// no_message = ENOMSG,
|
||||||
// no_protocol_option = ENOPROTOOPT,
|
// no_protocol_option = ENOPROTOOPT,
|
||||||
// no_space_on_device = ENOSPC,
|
no_space_on_device = ENOSPC,
|
||||||
// no_stream_resources = ENOSR,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ENOSR
|
||||||
|
no_stream_resources = ENOSR,
|
||||||
|
#endif
|
||||||
|
|
||||||
no_such_device_or_address = ENXIO,
|
no_such_device_or_address = ENXIO,
|
||||||
no_such_device = ENODEV,
|
no_such_device = ENODEV,
|
||||||
no_such_file_or_directory = ENOENT,
|
no_such_file_or_directory = ENOENT,
|
||||||
no_such_process = ESRCH,
|
no_such_process = ESRCH,
|
||||||
not_a_directory = ENOTDIR,
|
not_a_directory = ENOTDIR,
|
||||||
// not_a_socket = ENOTSOCK,
|
// not_a_socket = ENOTSOCK,
|
||||||
// not_a_stream = ENOSTR,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ENOSTR
|
||||||
|
not_a_stream = ENOSTR,
|
||||||
|
#endif
|
||||||
|
|
||||||
// not_connected = ENOTCONN,
|
// not_connected = ENOTCONN,
|
||||||
not_enough_memory = ENOMEM,
|
not_enough_memory = ENOMEM,
|
||||||
// not_supported = ENOTSUP,
|
|
||||||
// operation_canceled = ECANCELED,
|
#ifdef _GLIBCXX_HAVE_ENOTSUP
|
||||||
|
not_supported = ENOTSUP,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ECANCELED
|
||||||
|
operation_canceled = ECANCELED,
|
||||||
|
#endif
|
||||||
|
|
||||||
// operation_in_progress = EINPROGRESS,
|
// operation_in_progress = EINPROGRESS,
|
||||||
// operation_not_permitted = EPERM,
|
operation_not_permitted = EPERM,
|
||||||
// operation_not_supported = EOPNOTSUPP,
|
// operation_not_supported = EOPNOTSUPP,
|
||||||
// operation_would_block = EWOULDBLOCK,
|
// operation_would_block = EWOULDBLOCK,
|
||||||
// owner_dead = EOWNERDEAD,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_EOWNERDEAD
|
||||||
|
owner_dead = EOWNERDEAD,
|
||||||
|
#endif
|
||||||
|
|
||||||
permission_denied = EACCES,
|
permission_denied = EACCES,
|
||||||
// protocol_error = EPROTO,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_EPROTO
|
||||||
|
protocol_error = EPROTO,
|
||||||
|
#endif
|
||||||
|
|
||||||
// protocol_not_supported = EPROTONOSUPPORT,
|
// protocol_not_supported = EPROTONOSUPPORT,
|
||||||
read_only_file_system = EROFS,
|
read_only_file_system = EROFS,
|
||||||
resource_deadlock_would_occur = EDEADLK,
|
resource_deadlock_would_occur = EDEADLK,
|
||||||
resource_unavailable_try_again = EAGAIN,
|
resource_unavailable_try_again = EAGAIN,
|
||||||
result_out_of_range = ERANGE,
|
result_out_of_range = ERANGE,
|
||||||
// state_not_recoverable = ENOTRECOVERABLE,
|
|
||||||
// stream_timeout = ETIME,
|
#ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
|
||||||
// text_file_busy = ETXTBSY,
|
state_not_recoverable = ENOTRECOVERABLE,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ETIME
|
||||||
|
stream_timeout = ETIME,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ETXTBSY
|
||||||
|
text_file_busy = ETXTBSY,
|
||||||
|
#endif
|
||||||
|
|
||||||
// timed_out = ETIMEDOUT,
|
// timed_out = ETIMEDOUT,
|
||||||
too_many_files_open_in_system = ENFILE,
|
too_many_files_open_in_system = ENFILE,
|
||||||
too_many_files_open = EMFILE,
|
too_many_files_open = EMFILE,
|
||||||
too_many_links = EMLINK
|
too_many_links = EMLINK,
|
||||||
// too_many_symbolic_link_levels = ELOOP,
|
too_many_symbolic_link_levels = ELOOP,
|
||||||
// value_too_large = EOVERFLOW,
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_EOVERFLOW
|
||||||
|
value_too_large = EOVERFLOW,
|
||||||
|
#endif
|
||||||
|
|
||||||
// wrong_protocol_type = EPROTOTYPE
|
// wrong_protocol_type = EPROTOTYPE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue