OSDN Git Service

7b756cc6b93e290e0564ef0dddd7ee1afce6fc41
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / config / os / mingw32 / error_constants.h
1 // Specific definitions for mingw32 platform  -*- C++ -*-
2
3 // Copyright (C) 2007 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 2, 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 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING.  If not, write to the Free
18 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 // USA.
20
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction.  Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License.  This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
29
30 /** @file error_constants.h
31  *  This is an internal header file, included by other library headers.
32  *  You should not attempt to use it directly.
33  */
34
35 #ifndef _GLIBCXX_ERROR_CONSTANTS
36 #  define _GLIBCXX_ERROR_CONSTANTS
37
38 #include <bits/c++config.h>
39 #include <cerrno>
40
41
42 _GLIBCXX_BEGIN_NAMESPACE(std)
43
44 // Most of the commented-out error codes are socket-related and could be
45 // replaced by Winsock WSA-prefixed equivalents.
46   enum class errc : long
47     {
48 //    address_family_not_supported =            EAFNOSUPPORT,
49 //    address_in_use =                          EADDRINUSE,
50 //    address_not_available =                   EADDRNOTAVAIL,
51 //    already_connected =                       EISCONN,
52       argument_list_too_long =                  E2BIG,
53       argument_out_of_domain =                  EDOM,
54       bad_address =                             EFAULT,
55       bad_file_descriptor =                     EBADF,
56 //    bad_message =                             EBADMSG,
57       broken_pipe =                             EPIPE,
58 //    connection_aborted =                      ECONNABORTED,
59 //    connection_already_in_progress =          EALREADY,
60 //    connection_refused =                      ECONNREFUSED,
61 //    connection_reset =                        ECONNRESET,
62 //    cross_device_link =                       EXDEV,
63 //    destination_address_required =            EDESTADDRREQ,
64       device_or_resource_busy =                 EBUSY,
65       directory_not_empty =                     ENOTEMPTY,
66       executable_format_error =                 ENOEXEC,
67       file_exists =                             EEXIST,
68       file_too_large =                          EFBIG,
69       filename_too_long =                       ENAMETOOLONG,
70       function_not_supported =                  ENOSYS,
71 //    host_unreachable =                        EHOSTUNREACH,
72 //    identifier_removed =                      EIDRM,
73       illegal_byte_sequence =                   EILSEQ,
74       inappropriate_io_control_operation =      ENOTTY,
75       interrupted =                             EINTR,
76       invalid_argument =                        EINVAL,
77       invalid_seek =                            ESPIPE,
78       io_error =                                EIO,
79       is_a_directory =                          EISDIR,
80 //    message_size =                            EMSGSIZE,
81 //    network_down =                            ENETDOWN,
82 //    network_reset =                           ENETRESET,
83 //    network_unreachable =                     ENETUNREACH,
84 //    no_buffer_space =                         ENOBUFS,
85 //    no_child_process =                        ECHILD,
86 //    no_link =                                 ENOLINK,
87       no_lock_available =                       ENOLCK,
88 //    no_message_available =                    ENODATA, 
89 //    no_message =                              ENOMSG, 
90 //    no_protocol_option =                      ENOPROTOOPT,
91 //    no_space_on_device =                      ENOSPC,
92 //    no_stream_resources =                     ENOSR,
93       no_such_device_or_address =               ENXIO,
94       no_such_device =                          ENODEV,
95       no_such_file_or_directory =               ENOENT,
96       no_such_process =                         ESRCH,
97       not_a_directory =                         ENOTDIR,
98 //    not_a_socket =                            ENOTSOCK,
99 //    not_a_stream =                            ENOSTR,
100 //    not_connected =                           ENOTCONN,
101       not_enough_memory =                       ENOMEM,
102 //    not_supported =                           ENOTSUP,
103 //    operation_canceled =                      ECANCELED,
104 //    operation_in_progress =                   EINPROGRESS,
105 //    operation_not_permitted =                 EPERM,
106 //    operation_not_supported =                 EOPNOTSUPP,
107 //    operation_would_block =                   EWOULDBLOCK,
108 //    owner_dead =                              EOWNERDEAD,
109       permission_denied =                       EACCES,
110 //    protocol_error =                          EPROTO,
111 //    protocol_not_supported =                  EPROTONOSUPPORT,
112       read_only_file_system =                   EROFS,
113       resource_deadlock_would_occur =           EDEADLK,
114       resource_unavailable_try_again =          EAGAIN,
115       result_out_of_range =                     ERANGE,
116 //    state_not_recoverable =                   ENOTRECOVERABLE,
117 //    stream_timeout =                          ETIME,
118 //    text_file_busy =                          ETXTBSY,
119 //    timed_out =                               ETIMEDOUT,
120       too_many_files_open_in_system =           ENFILE,
121       too_many_files_open =                     EMFILE,
122       too_many_links =                          EMLINK,
123  //   too_many_symbolic_link_levels =           ELOOP,
124  //   value_too_large =                         EOVERFLOW,
125  //   wrong_protocol_type =                     EPROTOTYPE,
126       no_posix_equivalent = 1L << 16
127    };
128
129 _GLIBCXX_END_NAMESPACE
130
131 #endif