[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / include / __system_error / errc.h
blobf87df86a71e15ab738b213c1bc1115a9a8995456
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP___ERRC
11 #define _LIBCPP___ERRC
14 system_error synopsis
16 namespace std
19 enum class errc
21 address_family_not_supported, // EAFNOSUPPORT
22 address_in_use, // EADDRINUSE
23 address_not_available, // EADDRNOTAVAIL
24 already_connected, // EISCONN
25 argument_list_too_long, // E2BIG
26 argument_out_of_domain, // EDOM
27 bad_address, // EFAULT
28 bad_file_descriptor, // EBADF
29 bad_message, // EBADMSG
30 broken_pipe, // EPIPE
31 connection_aborted, // ECONNABORTED
32 connection_already_in_progress, // EALREADY
33 connection_refused, // ECONNREFUSED
34 connection_reset, // ECONNRESET
35 cross_device_link, // EXDEV
36 destination_address_required, // EDESTADDRREQ
37 device_or_resource_busy, // EBUSY
38 directory_not_empty, // ENOTEMPTY
39 executable_format_error, // ENOEXEC
40 file_exists, // EEXIST
41 file_too_large, // EFBIG
42 filename_too_long, // ENAMETOOLONG
43 function_not_supported, // ENOSYS
44 host_unreachable, // EHOSTUNREACH
45 identifier_removed, // EIDRM
46 illegal_byte_sequence, // EILSEQ
47 inappropriate_io_control_operation, // ENOTTY
48 interrupted, // EINTR
49 invalid_argument, // EINVAL
50 invalid_seek, // ESPIPE
51 io_error, // EIO
52 is_a_directory, // EISDIR
53 message_size, // EMSGSIZE
54 network_down, // ENETDOWN
55 network_reset, // ENETRESET
56 network_unreachable, // ENETUNREACH
57 no_buffer_space, // ENOBUFS
58 no_child_process, // ECHILD
59 no_link, // ENOLINK
60 no_lock_available, // ENOLCK
61 no_message_available, // ENODATA
62 no_message, // ENOMSG
63 no_protocol_option, // ENOPROTOOPT
64 no_space_on_device, // ENOSPC
65 no_stream_resources, // ENOSR
66 no_such_device_or_address, // ENXIO
67 no_such_device, // ENODEV
68 no_such_file_or_directory, // ENOENT
69 no_such_process, // ESRCH
70 not_a_directory, // ENOTDIR
71 not_a_socket, // ENOTSOCK
72 not_a_stream, // ENOSTR
73 not_connected, // ENOTCONN
74 not_enough_memory, // ENOMEM
75 not_supported, // ENOTSUP
76 operation_canceled, // ECANCELED
77 operation_in_progress, // EINPROGRESS
78 operation_not_permitted, // EPERM
79 operation_not_supported, // EOPNOTSUPP
80 operation_would_block, // EWOULDBLOCK
81 owner_dead, // EOWNERDEAD
82 permission_denied, // EACCES
83 protocol_error, // EPROTO
84 protocol_not_supported, // EPROTONOSUPPORT
85 read_only_file_system, // EROFS
86 resource_deadlock_would_occur, // EDEADLK
87 resource_unavailable_try_again, // EAGAIN
88 result_out_of_range, // ERANGE
89 state_not_recoverable, // ENOTRECOVERABLE
90 stream_timeout, // ETIME
91 text_file_busy, // ETXTBSY
92 timed_out, // ETIMEDOUT
93 too_many_files_open_in_system, // ENFILE
94 too_many_files_open, // EMFILE
95 too_many_links, // EMLINK
96 too_many_symbolic_link_levels, // ELOOP
97 value_too_large, // EOVERFLOW
98 wrong_protocol_type // EPROTOTYPE
103 #include <__config>
104 #include <cerrno>
106 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
107 # pragma GCC system_header
108 #endif
110 _LIBCPP_BEGIN_NAMESPACE_STD
112 // Some error codes are not present on all platforms, so we provide equivalents
113 // for them:
115 // enum class errc
116 _LIBCPP_DECLARE_STRONG_ENUM(errc){
117 address_family_not_supported = EAFNOSUPPORT,
118 address_in_use = EADDRINUSE,
119 address_not_available = EADDRNOTAVAIL,
120 already_connected = EISCONN,
121 argument_list_too_long = E2BIG,
122 argument_out_of_domain = EDOM,
123 bad_address = EFAULT,
124 bad_file_descriptor = EBADF,
125 bad_message = EBADMSG,
126 broken_pipe = EPIPE,
127 connection_aborted = ECONNABORTED,
128 connection_already_in_progress = EALREADY,
129 connection_refused = ECONNREFUSED,
130 connection_reset = ECONNRESET,
131 cross_device_link = EXDEV,
132 destination_address_required = EDESTADDRREQ,
133 device_or_resource_busy = EBUSY,
134 directory_not_empty = ENOTEMPTY,
135 executable_format_error = ENOEXEC,
136 file_exists = EEXIST,
137 file_too_large = EFBIG,
138 filename_too_long = ENAMETOOLONG,
139 function_not_supported = ENOSYS,
140 host_unreachable = EHOSTUNREACH,
141 identifier_removed = EIDRM,
142 illegal_byte_sequence = EILSEQ,
143 inappropriate_io_control_operation = ENOTTY,
144 interrupted = EINTR,
145 invalid_argument = EINVAL,
146 invalid_seek = ESPIPE,
147 io_error = EIO,
148 is_a_directory = EISDIR,
149 message_size = EMSGSIZE,
150 network_down = ENETDOWN,
151 network_reset = ENETRESET,
152 network_unreachable = ENETUNREACH,
153 no_buffer_space = ENOBUFS,
154 no_child_process = ECHILD,
155 no_link = ENOLINK,
156 no_lock_available = ENOLCK,
157 #ifdef ENODATA
158 no_message_available = ENODATA,
159 #else
160 no_message_available = ENOMSG,
161 #endif
162 no_message = ENOMSG,
163 no_protocol_option = ENOPROTOOPT,
164 no_space_on_device = ENOSPC,
165 #ifdef ENOSR
166 no_stream_resources = ENOSR,
167 #else
168 no_stream_resources = ENOMEM,
169 #endif
170 no_such_device_or_address = ENXIO,
171 no_such_device = ENODEV,
172 no_such_file_or_directory = ENOENT,
173 no_such_process = ESRCH,
174 not_a_directory = ENOTDIR,
175 not_a_socket = ENOTSOCK,
176 #ifdef ENOSTR
177 not_a_stream = ENOSTR,
178 #else
179 not_a_stream = EINVAL,
180 #endif
181 not_connected = ENOTCONN,
182 not_enough_memory = ENOMEM,
183 not_supported = ENOTSUP,
184 operation_canceled = ECANCELED,
185 operation_in_progress = EINPROGRESS,
186 operation_not_permitted = EPERM,
187 operation_not_supported = EOPNOTSUPP,
188 operation_would_block = EWOULDBLOCK,
189 owner_dead = EOWNERDEAD,
190 permission_denied = EACCES,
191 protocol_error = EPROTO,
192 protocol_not_supported = EPROTONOSUPPORT,
193 read_only_file_system = EROFS,
194 resource_deadlock_would_occur = EDEADLK,
195 resource_unavailable_try_again = EAGAIN,
196 result_out_of_range = ERANGE,
197 state_not_recoverable = ENOTRECOVERABLE,
198 #ifdef ETIME
199 stream_timeout = ETIME,
200 #else
201 stream_timeout = ETIMEDOUT,
202 #endif
203 text_file_busy = ETXTBSY,
204 timed_out = ETIMEDOUT,
205 too_many_files_open_in_system = ENFILE,
206 too_many_files_open = EMFILE,
207 too_many_links = EMLINK,
208 too_many_symbolic_link_levels = ELOOP,
209 value_too_large = EOVERFLOW,
210 wrong_protocol_type = EPROTOTYPE};
211 _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc)
213 _LIBCPP_END_NAMESPACE_STD
215 #endif // _LIBCPP___ERRC