Commit 918bf5c1 by Paolo Carlini Committed by Paolo Carlini

error_constants.h (enum errc): Remove no_posix_equivalent.

2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/os/generic/error_constants.h (enum errc): Remove
	no_posix_equivalent.
	* config/os/mingw32/error_constants.h (enum errc): Likewise.
	* testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
	Adjust.

From-SVN: r141341
parent 100d537d
2008-10-24 Paolo Carlini <paolo.carlini@oracle.com>
* config/os/generic/error_constants.h (enum errc): Remove
no_posix_equivalent.
* config/os/mingw32/error_constants.h (enum errc): Likewise.
* testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
Adjust.
2008-10-24 Jakub Jelinek <jakub@redhat.com> 2008-10-24 Jakub Jelinek <jakub@redhat.com>
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu. * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
_GLIBCXX_BEGIN_NAMESPACE(std) _GLIBCXX_BEGIN_NAMESPACE(std)
enum class errc : long enum class errc
{ {
address_family_not_supported = EAFNOSUPPORT, address_family_not_supported = EAFNOSUPPORT,
address_in_use = EADDRINUSE, address_in_use = EADDRINUSE,
...@@ -172,8 +172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -172,8 +172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
value_too_large = EOVERFLOW, value_too_large = EOVERFLOW,
#endif #endif
wrong_protocol_type = EPROTOTYPE, wrong_protocol_type = EPROTOTYPE
no_posix_equivalent = 1L << 16
}; };
_GLIBCXX_END_NAMESPACE _GLIBCXX_END_NAMESPACE
......
// Specific definitions for mingw32 platform -*- C++ -*- // Specific definitions for mingw32 platform -*- C++ -*-
// Copyright (C) 2007 Free Software Foundation, Inc. // Copyright (C) 2007, 2008 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Most of the commented-out error codes are socket-related and could be // Most of the commented-out error codes are socket-related and could be
// replaced by Winsock WSA-prefixed equivalents. // replaced by Winsock WSA-prefixed equivalents.
enum class errc : long enum class errc
{ {
// address_family_not_supported = EAFNOSUPPORT, // address_family_not_supported = EAFNOSUPPORT,
// address_in_use = EADDRINUSE, // address_in_use = EADDRINUSE,
...@@ -119,11 +119,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -119,11 +119,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// 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, // value_too_large = EOVERFLOW,
// wrong_protocol_type = EPROTOTYPE, // wrong_protocol_type = EPROTOTYPE
no_posix_equivalent = 1L << 16
}; };
_GLIBCXX_END_NAMESPACE _GLIBCXX_END_NAMESPACE
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// { dg-do compile } // { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc. // Copyright (C) 2007, 2008 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -85,7 +85,6 @@ void test01() ...@@ -85,7 +85,6 @@ void test01()
#endif #endif
TEST_ERRC(no_message); TEST_ERRC(no_message);
TEST_ERRC(no_posix_equivalent);
TEST_ERRC(no_protocol_option); TEST_ERRC(no_protocol_option);
TEST_ERRC(no_space_on_device); TEST_ERRC(no_space_on_device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment