1 /* From: NetBSD: setjmp.h,v 1.2 1997/04/06 08:47:41 cgd Exp */
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
7 * Author: Chris G. Demetriou
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
29 * JNPR: setjmp.h,v 1.2 2006/12/02 09:53:41 katta
33 #ifndef _MACHINE_SETJMP_H_
34 #define _MACHINE_SETJMP_H_
37 * machine/setjmp.h: machine dependent setjmp-related information.
40 #include <sys/cdefs.h>
42 #define _JBLEN 95 /* size, in longs (or long longs), of a jmp_buf */
45 * jmp_buf and sigjmp_buf are encapsulated in different structs to force
46 * compile-time diagnostics for mismatches. The structs are the same
47 * internally to avoid some run-time errors for mismatches.
51 #if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
53 typedef struct _sigjmp_buf { long long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
55 typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
60 typedef struct _jmp_buf { long long _jb[_JBLEN + 1]; } jmp_buf[1];
62 typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
64 #endif /* __ASSEMBLER__ */
67 #endif /* _MACHINE_SETJMP_H_ */