1 /* From: NetBSD: setjmp.h,v 1.2 1997/04/06 08:47:41 cgd Exp */
2
3 /*-
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
5 * All rights reserved.
6 *
7 * Author: Chris G. Demetriou
8 *
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.
14 *
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.
18 *
19 * Carnegie Mellon requests users of this software to return to
20 *
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
25 *
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
28 *
29 * JNPR: setjmp.h,v 1.2 2006/12/02 09:53:41 katta
30 * $FreeBSD: releng/8.0/sys/mips/include/setjmp.h 178172 2008-04-13 07:27:37Z imp $
31 */
32
33 #ifndef _MACHINE_SETJMP_H_
34 #define _MACHINE_SETJMP_H_
35
36 /*
37 * machine/setjmp.h: machine dependent setjmp-related information.
38 */
39
40 #include <sys/cdefs.h>
41
42 #define _JBLEN 95 /* size, in longs, of a jmp_buf */
43
44 /*
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.
48 */
49 #ifndef _LOCORE
50 #ifndef __ASSEMBLER__
51 #if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
52 typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
53 #endif
54
55 typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
56 #endif /* __ASSEMBLER__ */
57 #endif /* _LOCORE */
58
59 #endif /* _MACHINE_SETJMP_H_ */
Cache object: 7a88f27cfb77fd9ea7238d90df525c56
|