summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-11-18 04:04:35 +0000
committerjake <jake@FreeBSD.org>2001-11-18 04:04:35 +0000
commitbb775f0c6977471676bb4139024f7c212b7f79b6 (patch)
tree0b6849de06de7ff2ee984d0bc965c5f3d81721d0 /sys
parent03b1e82fd5a1775fd83113c51ca9294f583c1e8d (diff)
downloadFreeBSD-src-bb775f0c6977471676bb4139024f7c212b7f79b6.zip
FreeBSD-src-bb775f0c6977471676bb4139024f7c212b7f79b6.tar.gz
Make jmpbuf the same size as ucontext_t so that it can be passed
to sigreturn. Obtained from: alpha
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/include/setjmp.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/sparc64/include/setjmp.h b/sys/sparc64/include/setjmp.h
index 16be244..b35fa39 100644
--- a/sys/sparc64/include/setjmp.h
+++ b/sys/sparc64/include/setjmp.h
@@ -36,11 +36,7 @@
#ifndef _MACHINE_SETJMP_H_
#define _MACHINE_SETJMP_H_
-#define _JBLEN 3
-
-#define _JB_FP 0
-#define _JB_PC 1
-#define _JB_SP 2
+#define _JBLEN 31
/*
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
@@ -48,15 +44,9 @@
* internally to avoid some run-time errors for mismatches.
*/
#ifndef _ANSI_SOURCE
-struct _sigjmp_buf {
- long _sjb[_JBLEN + 1];
-};
-typedef struct _sigjmp_buf sigjmp_buf[1];
+typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
#endif
-struct _jmp_buf {
- long _jb[_JBLEN + 1];
-};
-typedef struct _jmp_buf jmp_buf[1];
+typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
#endif /* !_MACHINE_SETJMP_H_ */
OpenPOWER on IntegriCloud