summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Versions5
-rw-r--r--math/complex.h10
-rw-r--r--math/fenv.h16
-rw-r--r--math/test-fenv.c2
-rw-r--r--math/tgmath.h2
5 files changed, 20 insertions, 15 deletions
diff --git a/math/Versions b/math/Versions
index 8bed0264f7..2be65529c9 100644
--- a/math/Versions
+++ b/math/Versions
@@ -153,4 +153,9 @@ libm {
     __fpclassify; __fpclassifyf; __fpclassifyl;
     __signbit; __signbitf; __signbitl;
   }
+  GLIBC_2.1.3 {
+    # fp environment functions changes from ISO C99 TR1
+    feclearexcept; fegetenv; fegetexceptflag; feraiseexcept;
+    fesetenv; fesetexceptflag; feupdateenv;
+  }
 }
diff --git a/math/complex.h b/math/complex.h
index 26cc5e24d7..72b498e1fa 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 /*
- *	ISO C 9X:  7.8 Complex arithmetic	<complex.h>
+ *	ISO C99:  7.8 Complex arithmetic	<complex.h>
  */
 
 #ifndef _COMPLEX_H
@@ -25,13 +25,13 @@
 
 #include <features.h>
 
-/* Get general and ISO C 9X specific information.  */
+/* Get general and ISO C99 specific information.  */
 #include <bits/mathdef.h>
 
 __BEGIN_DECLS
 
-/* We might need to add support for more compilers here.  But once ISO
-   C 9X is out hopefully all maintained compilers will provide the data
+/* We might need to add support for more compilers here.  But since ISO
+   C99 is out hopefully all maintained compilers will soon provide the data
    types `float complex' and `double complex'.  */
 #if __GNUC_PREREQ (2, 7)
 # define _Complex __complex__
@@ -82,7 +82,7 @@ __BEGIN_DECLS
 #undef	__MATH_PRECNAME
 
 /* And the long double versions.  It is non-critical to define them
-   here unconditionally since `long double' is required in ISO C 9X.  */
+   here unconditionally since `long double' is required in ISO C99.  */
 #if __STDC__ - 0 || __GNUC__ - 0 && !defined __NO_LONG_DOUBLE_MATH
 # ifndef _Mlong_double_
 #  define _Mlong_double_	long double
diff --git a/math/fenv.h b/math/fenv.h
index 8e83246a17..35428370b4 100644
--- a/math/fenv.h
+++ b/math/fenv.h
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 /*
- * ISO C 9X 7.6: Floating-point environment	<fenv.h>
+ * ISO C99 7.6: Floating-point environment	<fenv.h>
  */
 
 #ifndef _FENV_H
@@ -62,18 +62,18 @@ __BEGIN_DECLS
 /* Floating-point exception handling.  */
 
 /* Clear the supported exceptions represented by EXCEPTS.  */
-extern void feclearexcept (int __excepts) __THROW;
+extern int feclearexcept (int __excepts) __THROW;
 
 /* Store implementation-defined representation of the exception flags
    indicated by EXCEPTS in the object pointed to by FLAGP.  */
-extern void fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
+extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
 
 /* Raise the supported exceptions represented by EXCEPTS.  */
-extern void feraiseexcept (int __excepts) __THROW;
+extern int feraiseexcept (int __excepts) __THROW;
 
 /* Set complete status for exceptions indicated by EXCEPTS according to
    the representation in the object pointed to by FLAGP.  */
-extern void fesetexceptflag (__const fexcept_t *__flagp, int __excepts) __THROW;
+extern int fesetexceptflag (__const fexcept_t *__flagp, int __excepts) __THROW;
 
 /* Determine which of subset of the exceptions specified by EXCEPTS are
    currently set.  */
@@ -93,7 +93,7 @@ extern int fesetround (int __rounding_direction) __THROW;
 
 /* Store the current floating-point environment in the object pointed
    to by ENVP.  */
-extern void fegetenv (fenv_t *__envp) __THROW;
+extern int fegetenv (fenv_t *__envp) __THROW;
 
 /* Save the current environment in the object pointed to by ENVP, clear
    exception flags and install a non-stop mode (if available) for all
@@ -102,12 +102,12 @@ extern int feholdexcept (fenv_t *__envp) __THROW;
 
 /* Establish the floating-point environment represented by the object
    pointed to by ENVP.  */
-extern void fesetenv (__const fenv_t *__envp) __THROW;
+extern int fesetenv (__const fenv_t *__envp) __THROW;
 
 /* Save current exceptions in temporary storage, install environment
    represented by object pointed to by ENVP and raise exceptions
    according to saved exceptions.  */
-extern void feupdateenv (__const fenv_t *__envp) __THROW;
+extern int feupdateenv (__const fenv_t *__envp) __THROW;
 
 __END_DECLS
 
diff --git a/math/test-fenv.c b/math/test-fenv.c
index 3292f81dbb..937f535c68 100644
--- a/math/test-fenv.c
+++ b/math/test-fenv.c
@@ -373,7 +373,7 @@ feenv_tests (void)
 }
 
 
-/* IEC 559 and ISO C 9X define a default startup environment */
+/* IEC 559 and ISO C99 define a default startup environment */
 static void
 initial_tests (void)
 {
diff --git a/math/tgmath.h b/math/tgmath.h
index 449b498ab7..7bf22b94de 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 /*
- *	ISO C 9X Standard: 7.9 Type-generic math	<tgmath.h>
+ *	ISO C99 Standard: 7.22 Type-generic math	<tgmath.h>
  */
 
 #ifndef _TGMATH_H