setjmp.h (88628) | setjmp.h (104493) |
---|---|
1/* | 1/*- |
2 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 2 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * from: FreeBSD: src/sys/i386/include/setjmp.h,v 1.5 2000/10/06 33 * $FreeBSD: head/sys/sparc64/include/setjmp.h 88628 2001-12-29 07:03:09Z jake $ | 32 * From: FreeBSD: src/sys/i386/include/setjmp.h,v 1.5 2000/10/06 33 * $FreeBSD: head/sys/sparc64/include/setjmp.h 104493 2002-10-04 22:10:06Z mike $ |
34 */ 35 36#ifndef _MACHINE_SETJMP_H_ 37#define _MACHINE_SETJMP_H_ 38 39#define _JBLEN 5 40 41#define _JB_FP 0 42#define _JB_PC 1 43#define _JB_SP 2 44#define _JB_SIGMASK 3 45#define _JB_SIGFLAG 5 46 47/* 48 * jmp_buf and sigjmp_buf are encapsulated in different structs to force 49 * compile-time diagnostics for mismatches. The structs are the same 50 * internally to avoid some run-time errors for mismatches. 51 */ 52#ifndef _ANSI_SOURCE | 34 */ 35 36#ifndef _MACHINE_SETJMP_H_ 37#define _MACHINE_SETJMP_H_ 38 39#define _JBLEN 5 40 41#define _JB_FP 0 42#define _JB_PC 1 43#define _JB_SP 2 44#define _JB_SIGMASK 3 45#define _JB_SIGFLAG 5 46 47/* 48 * jmp_buf and sigjmp_buf are encapsulated in different structs to force 49 * compile-time diagnostics for mismatches. The structs are the same 50 * internally to avoid some run-time errors for mismatches. 51 */ 52#ifndef _ANSI_SOURCE |
53typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; | 53typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; |
54#endif 55 | 54#endif 55 |
56typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1]; | 56typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1]; |
57 58#endif /* !_MACHINE_SETJMP_H_ */ | 57 58#endif /* !_MACHINE_SETJMP_H_ */ |