]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/config/os/djgpp/error_constants.h
re PR libstdc++/43918 (gcc 4.5.0 is failing for i586-pc-msdosdjgpp)
[thirdparty/gcc.git] / libstdc++-v3 / config / os / djgpp / error_constants.h
1 // Specific definitions for DJGPP platform -*- C++ -*-
2
3 // Copyright (C) 2010 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
9 // any later version.
10
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15
16 // Under Section 7 of GPL version 3, you are granted additional
17 // permissions described in the GCC Runtime Library Exception, version
18 // 3.1, as published by the Free Software Foundation.
19
20 // You should have received a copy of the GNU General Public License and
21 // a copy of the GCC Runtime Library Exception along with this program;
22 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 // <http://www.gnu.org/licenses/>.
24
25 /** @file error_constants.h
26 * This is an internal header file, included by other library headers.
27 * You should not attempt to use it directly.
28 */
29
30 #ifndef _GLIBCXX_ERROR_CONSTANTS
31 #define _GLIBCXX_ERROR_CONSTANTS 1
32
33 #include <bits/c++config.h>
34 #include <cerrno>
35
36 _GLIBCXX_BEGIN_NAMESPACE(std)
37
38 // Most of the commented-out error codes are socket-related and could be
39 // replaced by Winsock WSA-prefixed equivalents.
40 enum class errc
41 {
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,
48 bad_address = EFAULT,
49 bad_file_descriptor = EBADF,
50 // bad_message = EBADMSG,
51 broken_pipe = EPIPE,
52 // connection_aborted = ECONNABORTED,
53 // connection_already_in_progress = EALREADY,
54 // connection_refused = ECONNREFUSED,
55 // connection_reset = ECONNRESET,
56 // cross_device_link = EXDEV,
57 // destination_address_required = EDESTADDRREQ,
58 device_or_resource_busy = EBUSY,
59 directory_not_empty = ENOTEMPTY,
60 executable_format_error = ENOEXEC,
61 file_exists = EEXIST,
62 file_too_large = EFBIG,
63 filename_too_long = ENAMETOOLONG,
64 function_not_supported = ENOSYS,
65 // host_unreachable = EHOSTUNREACH,
66 // identifier_removed = EIDRM,
67 illegal_byte_sequence = EILSEQ,
68 inappropriate_io_control_operation = ENOTTY,
69 interrupted = EINTR,
70 invalid_argument = EINVAL,
71 invalid_seek = ESPIPE,
72 io_error = EIO,
73 is_a_directory = EISDIR,
74 // message_size = EMSGSIZE,
75 // network_down = ENETDOWN,
76 // network_reset = ENETRESET,
77 // network_unreachable = ENETUNREACH,
78 // no_buffer_space = ENOBUFS,
79 // no_child_process = ECHILD,
80 // no_link = ENOLINK,
81 no_lock_available = ENOLCK,
82 // no_message_available = ENODATA,
83 // no_message = ENOMSG,
84 // no_protocol_option = ENOPROTOOPT,
85 // no_space_on_device = ENOSPC,
86 // no_stream_resources = ENOSR,
87 no_such_device_or_address = ENXIO,
88 no_such_device = ENODEV,
89 no_such_file_or_directory = ENOENT,
90 no_such_process = ESRCH,
91 not_a_directory = ENOTDIR,
92 // not_a_socket = ENOTSOCK,
93 // not_a_stream = ENOSTR,
94 // not_connected = ENOTCONN,
95 not_enough_memory = ENOMEM,
96 // not_supported = ENOTSUP,
97 // operation_canceled = ECANCELED,
98 // operation_in_progress = EINPROGRESS,
99 // operation_not_permitted = EPERM,
100 // operation_not_supported = EOPNOTSUPP,
101 // operation_would_block = EWOULDBLOCK,
102 // owner_dead = EOWNERDEAD,
103 permission_denied = EACCES,
104 // protocol_error = EPROTO,
105 // protocol_not_supported = EPROTONOSUPPORT,
106 read_only_file_system = EROFS,
107 resource_deadlock_would_occur = EDEADLK,
108 resource_unavailable_try_again = EAGAIN,
109 result_out_of_range = ERANGE,
110 // state_not_recoverable = ENOTRECOVERABLE,
111 // stream_timeout = ETIME,
112 // text_file_busy = ETXTBSY,
113 // timed_out = ETIMEDOUT,
114 too_many_files_open_in_system = ENFILE,
115 too_many_files_open = EMFILE,
116 too_many_links = EMLINK
117 // too_many_symbolic_link_levels = ELOOP,
118 // value_too_large = EOVERFLOW,
119 // wrong_protocol_type = EPROTOTYPE
120 };
121
122 _GLIBCXX_END_NAMESPACE
123
124 #endif