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