]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/config/os/djgpp/error_constants.h
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / config / os / djgpp / error_constants.h
CommitLineData
a51d1999
SG
1// Specific definitions for DJGPP platform -*- C++ -*-
2
7adcbafe 3// Copyright (C) 2010-2022 Free Software Foundation, Inc.
a51d1999
SG
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
f910786b 25/** @file bits/error_constants.h
a51d1999 26 * This is an internal header file, included by other library headers.
f910786b 27 * Do not attempt to use it directly. @headername{system_error}
a51d1999
SG
28 */
29
30#ifndef _GLIBCXX_ERROR_CONSTANTS
31#define _GLIBCXX_ERROR_CONSTANTS 1
32
33#include <bits/c++config.h>
34#include <cerrno>
35
12ffa228
BK
36namespace std _GLIBCXX_VISIBILITY(default)
37{
38_GLIBCXX_BEGIN_NAMESPACE_VERSION
a51d1999 39
a51d1999
SG
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,
c1dd339f 50
217d5bea 51#ifdef EBADMSG
c1dd339f
AP
52 bad_message = EBADMSG,
53#endif
54
a51d1999
SG
55 broken_pipe = EPIPE,
56// connection_aborted = ECONNABORTED,
57// connection_already_in_progress = EALREADY,
58// connection_refused = ECONNREFUSED,
59// connection_reset = ECONNRESET,
c1dd339f 60 cross_device_link = EXDEV,
a51d1999
SG
61// destination_address_required = EDESTADDRREQ,
62 device_or_resource_busy = EBUSY,
63 directory_not_empty = ENOTEMPTY,
64 executable_format_error = ENOEXEC,
65 file_exists = EEXIST,
66 file_too_large = EFBIG,
67 filename_too_long = ENAMETOOLONG,
68 function_not_supported = ENOSYS,
69// host_unreachable = EHOSTUNREACH,
c1dd339f 70
217d5bea 71#ifdef EIDRM
c1dd339f
AP
72 identifier_removed = EIDRM,
73#endif
74
a51d1999
SG
75 illegal_byte_sequence = EILSEQ,
76 inappropriate_io_control_operation = ENOTTY,
77 interrupted = EINTR,
78 invalid_argument = EINVAL,
79 invalid_seek = ESPIPE,
80 io_error = EIO,
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,
c1dd339f
AP
87 no_child_process = ECHILD,
88
217d5bea 89#ifdef ENOLINK
c1dd339f
AP
90 no_link = ENOLINK,
91#endif
92
a51d1999 93 no_lock_available = ENOLCK,
c1dd339f 94
217d5bea 95#ifdef ENODATA
f92ab29f 96 no_message_available = ENODATA,
c1dd339f
AP
97#endif
98
f92ab29f 99// no_message = ENOMSG,
a51d1999 100// no_protocol_option = ENOPROTOOPT,
c1dd339f
AP
101 no_space_on_device = ENOSPC,
102
217d5bea 103#ifdef ENOSR
c1dd339f
AP
104 no_stream_resources = ENOSR,
105#endif
106
a51d1999
SG
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,
c1dd339f 113
217d5bea 114#ifdef ENOSTR
c1dd339f
AP
115 not_a_stream = ENOSTR,
116#endif
117
a51d1999
SG
118// not_connected = ENOTCONN,
119 not_enough_memory = ENOMEM,
c1dd339f 120
217d5bea 121#ifdef ENOTSUP
c1dd339f
AP
122 not_supported = ENOTSUP,
123#endif
124
217d5bea 125#ifdef ECANCELED
c1dd339f
AP
126 operation_canceled = ECANCELED,
127#endif
128
a51d1999 129// operation_in_progress = EINPROGRESS,
c1dd339f 130 operation_not_permitted = EPERM,
a51d1999
SG
131// operation_not_supported = EOPNOTSUPP,
132// operation_would_block = EWOULDBLOCK,
c1dd339f 133
217d5bea 134#ifdef EOWNERDEAD
c1dd339f
AP
135 owner_dead = EOWNERDEAD,
136#endif
137
a51d1999 138 permission_denied = EACCES,
c1dd339f 139
217d5bea 140#ifdef EPROTO
c1dd339f
AP
141 protocol_error = EPROTO,
142#endif
143
a51d1999
SG
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,
c1dd339f 149
217d5bea 150#ifdef ENOTRECOVERABLE
c1dd339f
AP
151 state_not_recoverable = ENOTRECOVERABLE,
152#endif
153
217d5bea 154#ifdef ETIME
c1dd339f
AP
155 stream_timeout = ETIME,
156#endif
157
217d5bea 158#ifdef ETXTBSY
c1dd339f
AP
159 text_file_busy = ETXTBSY,
160#endif
161
a51d1999
SG
162// timed_out = ETIMEDOUT,
163 too_many_files_open_in_system = ENFILE,
164 too_many_files_open = EMFILE,
c1dd339f
AP
165 too_many_links = EMLINK,
166 too_many_symbolic_link_levels = ELOOP,
167
217d5bea 168#ifdef EOVERFLOW
c1dd339f
AP
169 value_too_large = EOVERFLOW,
170#endif
171
172// wrong_protocol_type = EPROTOTYPE
173 };
a51d1999 174
12ffa228
BK
175_GLIBCXX_END_NAMESPACE_VERSION
176} // namespace
a51d1999
SG
177
178#endif