setjmp.h revision 66458
1153838Sdfr/* $FreeBSD: head/sys/ia64/include/setjmp.h 66458 2000-09-29 13:46:07Z dfr $ */
2153838Sdfr/* From: NetBSD: setjmp.h,v 1.2 1997/04/06 08:47:41 cgd Exp */
3153838Sdfr
4153838Sdfr/*
5153838Sdfr * Copyright (c) 1994, 1995 Carnegie-Mellon University.
6153838Sdfr * All rights reserved.
7153838Sdfr *
8153838Sdfr * Author: Chris G. Demetriou
9153838Sdfr *
10153838Sdfr * Permission to use, copy, modify and distribute this software and
11153838Sdfr * its documentation is hereby granted, provided that both the copyright
12153838Sdfr * notice and this permission notice appear in all copies of the
13153838Sdfr * software, derivative works or modified versions, and any portions
14153838Sdfr * thereof, and that both notices appear in supporting documentation.
15153838Sdfr *
16153838Sdfr * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17153838Sdfr * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18153838Sdfr * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19153838Sdfr *
20153838Sdfr * Carnegie Mellon requests users of this software to return to
21153838Sdfr *
22153838Sdfr *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
23153838Sdfr *  School of Computer Science
24153838Sdfr *  Carnegie Mellon University
25153838Sdfr *  Pittsburgh PA 15213-3890
26153838Sdfr *
27153838Sdfr * any improvements or extensions that they make and grant Carnegie the
28153838Sdfr * rights to redistribute these changes.
29153838Sdfr */
30153838Sdfr
31153838Sdfr/*
32153838Sdfr * machine/setjmp.h: machine dependent setjmp-related information.
33153838Sdfr */
34153838Sdfr
35153838Sdfr#define _JBLEN  81              /* size, in longs, of a jmp_buf */
36153838Sdfr
37153838Sdfr/*
38153838Sdfr * jmp_buf and sigjmp_buf are encapsulated in different structs to force
39153838Sdfr * compile-time diagnostics for mismatches.  The structs are the same
40153838Sdfr * internally to avoid some run-time errors for mismatches.
41153838Sdfr */
42153838Sdfr#ifndef _ANSI_SOURCE
43153838Sdfrtypedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
44153838Sdfr#endif /* not ANSI */
45153838Sdfr
46153838Sdfrtypedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1];
47153838Sdfr