summaryrefslogtreecommitdiff
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-11-08 18:10:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-11-08 18:10:15 +0000
commit6c336b945448467fa0d639ac2e1d3661047dd6f4 (patch)
tree3d1fc98f1db8e3d3f3a418e7f51324ecf891b50a /regress/lib/libc
parent9f34da8a6e669295165bb6f5977810f1189f9f52 (diff)
Make sure we use a sigjmp_buf in the sigsetjmp() part of the test.
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/setjmp-fpu/_setjmp.c3
-rw-r--r--regress/lib/libc/setjmp-fpu/setjmp-fpu.c2
-rw-r--r--regress/lib/libc/setjmp-fpu/setjmp.c3
-rw-r--r--regress/lib/libc/setjmp-fpu/sigsetjmp.c3
4 files changed, 7 insertions, 4 deletions
diff --git a/regress/lib/libc/setjmp-fpu/_setjmp.c b/regress/lib/libc/setjmp-fpu/_setjmp.c
index 9131c7e0e89..a2195a5ff8e 100644
--- a/regress/lib/libc/setjmp-fpu/_setjmp.c
+++ b/regress/lib/libc/setjmp-fpu/_setjmp.c
@@ -1,6 +1,7 @@
-/* $OpenBSD: _setjmp.c,v 1.2 2015/01/20 04:41:01 krw Exp $ */
+/* $OpenBSD: _setjmp.c,v 1.3 2015/11/08 18:10:14 miod Exp $ */
#define SETJMP(env, savemask) _setjmp(env)
#define LONGJMP(env, val) _longjmp(env, val)
#define TEST_SETJMP test__setjmp
+#define JMP_BUF jmp_buf
#include "setjmp-fpu.c"
diff --git a/regress/lib/libc/setjmp-fpu/setjmp-fpu.c b/regress/lib/libc/setjmp-fpu/setjmp-fpu.c
index 45b3c1ee0e9..694061dcbb9 100644
--- a/regress/lib/libc/setjmp-fpu/setjmp-fpu.c
+++ b/regress/lib/libc/setjmp-fpu/setjmp-fpu.c
@@ -4,7 +4,7 @@
int
TEST_SETJMP(int argc, char *argv[])
{
- jmp_buf env;
+ JMP_BUF env;
int rv;
/* Set up the FPU control word register. */
diff --git a/regress/lib/libc/setjmp-fpu/setjmp.c b/regress/lib/libc/setjmp-fpu/setjmp.c
index fe4acd1d2d4..48d72056d06 100644
--- a/regress/lib/libc/setjmp-fpu/setjmp.c
+++ b/regress/lib/libc/setjmp-fpu/setjmp.c
@@ -1,6 +1,7 @@
-/* $OpenBSD: setjmp.c,v 1.2 2015/01/20 04:41:01 krw Exp $ */
+/* $OpenBSD: setjmp.c,v 1.3 2015/11/08 18:10:14 miod Exp $ */
#define SETJMP(env, savemask) setjmp(env)
#define LONGJMP(env, val) longjmp(env, val)
#define TEST_SETJMP test_setjmp
+#define JMP_BUF jmp_buf
#include "setjmp-fpu.c"
diff --git a/regress/lib/libc/setjmp-fpu/sigsetjmp.c b/regress/lib/libc/setjmp-fpu/sigsetjmp.c
index 6ce4cae37aa..158fd83296d 100644
--- a/regress/lib/libc/setjmp-fpu/sigsetjmp.c
+++ b/regress/lib/libc/setjmp-fpu/sigsetjmp.c
@@ -1,6 +1,7 @@
-/* $OpenBSD: sigsetjmp.c,v 1.2 2015/01/20 04:41:01 krw Exp $ */
+/* $OpenBSD: sigsetjmp.c,v 1.3 2015/11/08 18:10:14 miod Exp $ */
#define SETJMP(env, savemask) sigsetjmp(env, savemask)
#define LONGJMP(env, val) siglongjmp(env, val)
#define TEST_SETJMP test_sigsetjmp
+#define JMP_BUF sigjmp_buf
#include "setjmp-fpu.c"