summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/fenv.h3
-rw-r--r--include/math.h4
-rw-r--r--sys/arch/alpha/include/fenv.h4
-rw-r--r--sys/arch/amd64/include/fenv.h4
-rw-r--r--sys/arch/arm/include/fenv.h4
-rw-r--r--sys/arch/hppa/include/fenv.h4
-rw-r--r--sys/arch/hppa64/include/fenv.h4
-rw-r--r--sys/arch/i386/include/fenv.h4
-rw-r--r--sys/arch/m68k/include/fenv.h4
-rw-r--r--sys/arch/m88k/include/fenv.h4
-rw-r--r--sys/arch/mips64/include/fenv.h4
-rw-r--r--sys/arch/powerpc/include/fenv.h4
-rw-r--r--sys/arch/sh/include/fenv.h4
-rw-r--r--sys/arch/sparc/include/fenv.h4
-rw-r--r--sys/arch/sparc64/include/fenv.h4
15 files changed, 43 insertions, 16 deletions
diff --git a/include/fenv.h b/include/fenv.h
index 9d7197173b3..1368ab30e26 100644
--- a/include/fenv.h
+++ b/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.1 2011/04/21 21:12:56 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.2.4.1 2011/02/08 16:18:55 bouyer Exp $ */
/*
@@ -43,6 +43,7 @@ int fetestexcept(int);
int fegetround(void);
int fesetround(int);
+
int fegetenv(fenv_t *);
int feholdexcept(fenv_t *);
int fesetenv(const fenv_t *);
diff --git a/include/math.h b/include/math.h
index 769659e0475..5e42486549c 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: math.h,v 1.28 2011/04/28 18:05:39 martynas Exp $ */
+/* $OpenBSD: math.h,v 1.29 2011/05/25 21:46:49 martynas Exp $ */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -21,6 +21,7 @@
#include <sys/cdefs.h>
#include <sys/limits.h>
+__BEGIN_DECLS
/*
* ANSI/POSIX
*/
@@ -145,7 +146,6 @@ extern int signgam;
#define HUGE MAXFLOAT
#endif /* __BSD_VISIBLE */
-__BEGIN_DECLS
/*
* ANSI/POSIX
*/
diff --git a/sys/arch/alpha/include/fenv.h b/sys/arch/alpha/include/fenv.h
index c9f76150afe..4b3814fce8a 100644
--- a/sys/arch/alpha/include/fenv.h
+++ b/sys/arch/alpha/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -76,7 +76,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/amd64/include/fenv.h b/sys/arch/amd64/include/fenv.h
index addc8214da1..8dc23439434 100644
--- a/sys/arch/amd64/include/fenv.h
+++ b/sys/arch/amd64/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.3 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.4 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.1 2010/07/31 21:47:54 joerg Exp $ */
/*-
@@ -93,7 +93,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/arm/include/fenv.h b/sys/arch/arm/include/fenv.h
index 8811db10c7b..11904b0143a 100644
--- a/sys/arch/arm/include/fenv.h
+++ b/sys/arch/arm/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -75,7 +75,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/hppa/include/fenv.h b/sys/arch/hppa/include/fenv.h
index 1cd923e827c..714905f29e2 100644
--- a/sys/arch/hppa/include/fenv.h
+++ b/sys/arch/hppa/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/hppa64/include/fenv.h b/sys/arch/hppa64/include/fenv.h
index 33a4ee0a879..ae45693fae4 100644
--- a/sys/arch/hppa64/include/fenv.h
+++ b/sys/arch/hppa64/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.1 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/i386/include/fenv.h b/sys/arch/i386/include/fenv.h
index 80d34a65325..2a553a4950b 100644
--- a/sys/arch/i386/include/fenv.h
+++ b/sys/arch/i386/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.1.6.2 2010/10/24 22:48:02 jym Exp $ */
/*-
@@ -93,7 +93,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/m68k/include/fenv.h b/sys/arch/m68k/include/fenv.h
index c7a0acf9e72..33e7374b688 100644
--- a/sys/arch/m68k/include/fenv.h
+++ b/sys/arch/m68k/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -75,7 +75,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/m88k/include/fenv.h b/sys/arch/m88k/include/fenv.h
index f229e98557e..b002c598b48 100644
--- a/sys/arch/m88k/include/fenv.h
+++ b/sys/arch/m88k/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.1 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -74,7 +74,9 @@ typedef struct {
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/mips64/include/fenv.h b/sys/arch/mips64/include/fenv.h
index 5b3b7df82bb..b20295d809d 100644
--- a/sys/arch/mips64/include/fenv.h
+++ b/sys/arch/mips64/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/powerpc/include/fenv.h b/sys/arch/powerpc/include/fenv.h
index df2ab25c00b..8afe23b1820 100644
--- a/sys/arch/powerpc/include/fenv.h
+++ b/sys/arch/powerpc/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -74,7 +74,9 @@ typedef unsigned int fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/sh/include/fenv.h b/sys/arch/sh/include/fenv.h
index e07aae472f0..fe79af92536 100644
--- a/sys/arch/sh/include/fenv.h
+++ b/sys/arch/sh/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/sparc/include/fenv.h b/sys/arch/sparc/include/fenv.h
index 7869d44c353..01df38074b2 100644
--- a/sys/arch/sparc/include/fenv.h
+++ b/sys/arch/sparc/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.1.2.2 2011/02/08 16:19:41 bouyer Exp $ */
/*-
@@ -86,7 +86,9 @@ typedef unsigned long fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*
diff --git a/sys/arch/sparc64/include/fenv.h b/sys/arch/sparc64/include/fenv.h
index 882203e2cc6..3ba8c7858b6 100644
--- a/sys/arch/sparc64/include/fenv.h
+++ b/sys/arch/sparc64/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.3 2011/04/28 17:34:23 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.4 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.1.2.2 2011/02/08 16:19:41 bouyer Exp $ */
/*-
@@ -86,7 +86,9 @@ typedef unsigned long fenv_t;
* that manage the floating-point environment, namely fesetenv() and
* feupdateenv().
*/
+__BEGIN_DECLS
extern fenv_t __fe_dfl_env;
+__END_DECLS
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
/*