aboutsummaryrefslogtreecommitdiff
path: root/include/setjmp.h
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-01-11 03:46:26 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-01-11 03:46:26 +0000
commit7357ff3f14671e61bdd63e7ea441f877d328273b (patch)
tree44f3539c2bbc6d91e9b4dc5194c3e504d0d079a5 /include/setjmp.h
parent3c526fbfd321a90cb457f1a3d9c2caaa58e0c7b2 (diff)
downloadsrc-7357ff3f14671e61bdd63e7ea441f877d328273b.tar.gz
src-7357ff3f14671e61bdd63e7ea441f877d328273b.zip
Notes
Diffstat (limited to 'include/setjmp.h')
-rw-r--r--include/setjmp.h29
1 files changed, 4 insertions, 25 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index 5dcc8ee9564d..6a428c1f243c 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -41,29 +41,8 @@
#ifndef _SETJMP_H_
#define _SETJMP_H_
-#if defined(__hp300__) || defined(__luna68k__)
-#define _JBLEN 17
-#endif
-
-#if defined(__i386__)
-#define _JBLEN 8
-#endif
-
-#if defined(__mips__)
-#define _JBLEN 83
-#endif
-
-#if defined(__sparc__)
-#define _JBLEN 10
-#endif
-
-#if defined(__tahoe__)
-#define _JBLEN 10
-#endif
-
-#if defined(__vax__)
-#define _JBLEN 10
-#endif
+/* The size of the jmp_buf is machine dependent: */
+#include <machine/setjmp.h>
/*
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
@@ -71,10 +50,10 @@
* internally to avoid some run-time errors for mismatches.
*/
#ifndef _ANSI_SOURCE
-typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
+typedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
#endif /* not ANSI */
-typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1];
+typedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1];
#include <sys/cdefs.h>