error_constants.h (posix_errno): Guard not_supported use of ENOTSUP.
2008-02-14 Benjamin Kosnik <bkoz@redhat.com> * config/os/generic/error_constants.h (posix_errno): Guard not_supported use of ENOTSUP. * acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add check for ENOTSUP for OpenBSD. * aclocal.m4: Regenerate. * configure: Rengerate. * config.h.in: Same. From-SVN: r132319
This commit is contained in:
parent
a5bfb13a75
commit
4bcf935d11
5 changed files with 99 additions and 3 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
2008-02-14 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* config/os/generic/error_constants.h (posix_errno): Guard
|
||||||
|
not_supported use of ENOTSUP.
|
||||||
|
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add check for ENOTSUP
|
||||||
|
for OpenBSD.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Rengerate.
|
||||||
|
* config.h.in: Same.
|
||||||
|
|
||||||
2008-02-13 Benjamin Kosnik <bkoz@redhat.com>
|
2008-02-13 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
* doc/doxygen/mainpage.html: Correct links.
|
* doc/doxygen/mainpage.html: Correct links.
|
||||||
|
|
|
@ -1430,6 +1430,16 @@ AC_DEFUN([GLIBCXX_CHECK_SYSTEM_ERROR], [
|
||||||
if test x"$ac_system_error_12" = x"yes"; then
|
if test x"$ac_system_error_12" = x"yes"; then
|
||||||
AC_DEFINE(HAVE_EOVERFLOW, 1, [Define if EOVERFLOW exists.])
|
AC_DEFINE(HAVE_EOVERFLOW, 1, [Define if EOVERFLOW exists.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for ENOTSUP])
|
||||||
|
AC_CACHE_VAL(ac_system_error_13, [
|
||||||
|
AC_TRY_COMPILE([#include <errno.h>], [ int i = ENOTSUP; ],
|
||||||
|
[ac_system_error_13=yes], [ac_system_error_13=no])
|
||||||
|
])
|
||||||
|
AC_MSG_RESULT($ac_system_error_13)
|
||||||
|
if test x"$ac_system_error_13" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_ENOTSUP, 1, [Define if ENOTSUP exists.])
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
|
@ -84,6 +84,9 @@
|
||||||
/* Define if ENOTRECOVERABLE exists. */
|
/* Define if ENOTRECOVERABLE exists. */
|
||||||
#undef HAVE_ENOTRECOVERABLE
|
#undef HAVE_ENOTRECOVERABLE
|
||||||
|
|
||||||
|
/* Define if ENOTSUP exists. */
|
||||||
|
#undef HAVE_ENOTSUP
|
||||||
|
|
||||||
/* Define if EOVERFLOW exists. */
|
/* Define if EOVERFLOW exists. */
|
||||||
#undef HAVE_EOVERFLOW
|
#undef HAVE_EOVERFLOW
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Specific definitions for generic platforms -*- C++ -*-
|
// Specific definitions for generic platforms -*- 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
|
||||||
|
@ -90,6 +90,7 @@ namespace posix_error
|
||||||
#ifdef _GLIBCXX_HAVE_ENOLINK
|
#ifdef _GLIBCXX_HAVE_ENOLINK
|
||||||
no_link = ENOLINK,
|
no_link = ENOLINK,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
no_lock_available = ENOLCK,
|
no_lock_available = ENOLCK,
|
||||||
|
|
||||||
#ifdef _GLIBCXX_HAVE_ENODATA
|
#ifdef _GLIBCXX_HAVE_ENODATA
|
||||||
|
@ -117,7 +118,10 @@ namespace posix_error
|
||||||
|
|
||||||
not_connected = ENOTCONN,
|
not_connected = ENOTCONN,
|
||||||
not_enough_memory = ENOMEM,
|
not_enough_memory = ENOMEM,
|
||||||
|
|
||||||
|
#ifdef _GLIBCXX_HAVE_ENOTSUP
|
||||||
not_supported = ENOTSUP,
|
not_supported = ENOTSUP,
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _GLIBCXX_HAVE_ECANCELED
|
#ifdef _GLIBCXX_HAVE_ECANCELED
|
||||||
operation_canceled = ECANCELED,
|
operation_canceled = ECANCELED,
|
||||||
|
@ -127,18 +131,23 @@ namespace posix_error
|
||||||
operation_not_permitted = EPERM,
|
operation_not_permitted = EPERM,
|
||||||
operation_not_supported = EOPNOTSUPP,
|
operation_not_supported = EOPNOTSUPP,
|
||||||
operation_would_block = EWOULDBLOCK,
|
operation_would_block = EWOULDBLOCK,
|
||||||
|
|
||||||
#ifdef _GLIBCXX_HAVE_EOWNERDEAD
|
#ifdef _GLIBCXX_HAVE_EOWNERDEAD
|
||||||
owner_dead = EOWNERDEAD,
|
owner_dead = EOWNERDEAD,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
permission_denied = EACCES,
|
permission_denied = EACCES,
|
||||||
|
|
||||||
#ifdef _GLIBCXX_HAVE_EPROTO
|
#ifdef _GLIBCXX_HAVE_EPROTO
|
||||||
protocol_error = EPROTO,
|
protocol_error = EPROTO,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protocol_not_supported = EPROTONOSUPPORT,
|
protocol_not_supported = EPROTONOSUPPORT,
|
||||||
read_only_file_system = EROFS,
|
read_only_file_system = EROFS,
|
||||||
resource_deadlock_would_occur = EDEADLK,
|
resource_deadlock_would_occur = EDEADLK,
|
||||||
resource_unavailable_try_again = EAGAIN,
|
resource_unavailable_try_again = EAGAIN,
|
||||||
result_out_of_range = ERANGE,
|
result_out_of_range = ERANGE,
|
||||||
|
|
||||||
#ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
|
#ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE
|
||||||
state_not_recoverable = ENOTRECOVERABLE,
|
state_not_recoverable = ENOTRECOVERABLE,
|
||||||
#endif
|
#endif
|
||||||
|
|
66
libstdc++-v3/configure
vendored
66
libstdc++-v3/configure
vendored
|
@ -17742,6 +17742,70 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking for ENOTSUP" >&5
|
||||||
|
echo $ECHO_N "checking for ENOTSUP... $ECHO_C" >&6
|
||||||
|
if test "${ac_system_error_13+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <errno.h>
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
int i = ENOTSUP;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_system_error_13=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_system_error_13=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: result: $ac_system_error_13" >&5
|
||||||
|
echo "${ECHO_T}$ac_system_error_13" >&6
|
||||||
|
if test x"$ac_system_error_13" = x"yes"; then
|
||||||
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define HAVE_ENOTSUP 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# No surprises, no surprises...
|
# No surprises, no surprises...
|
||||||
|
|
||||||
|
@ -17784,7 +17848,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
# Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
|
# Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
|
||||||
cat > conftest.$ac_ext << EOF
|
cat > conftest.$ac_ext << EOF
|
||||||
#line 17787 "configure"
|
#line 17851 "configure"
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// NB: _Atomic_word not necessarily int.
|
// NB: _Atomic_word not necessarily int.
|
||||||
|
|
Loading…
Add table
Reference in a new issue