setjmp.h (50477) | setjmp.h (51792) |
---|---|
1/* $FreeBSD: head/sys/amd64/include/setjmp.h 50477 1999-08-28 01:08:13Z peter $ */ | 1/* $FreeBSD: head/sys/amd64/include/setjmp.h 51792 1999-09-29 15:06:27Z marcel $ */ |
2/* 3 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 */ 34 | 2/* 3 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 */ 34 |
35#define _JBLEN 8 /* Size of the jmp_buf on x86. */ | 35#define _JBLEN 11 /* Size of the jmp_buf on x86. */ |
36 37/* 38 * jmp_buf and sigjmp_buf are encapsulated in different structs to force 39 * compile-time diagnostics for mismatches. The structs are the same 40 * internally to avoid some run-time errors for mismatches. 41 */ 42#ifndef _ANSI_SOURCE 43typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; 44#endif /* not ANSI */ 45 46typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; | 36 37/* 38 * jmp_buf and sigjmp_buf are encapsulated in different structs to force 39 * compile-time diagnostics for mismatches. The structs are the same 40 * internally to avoid some run-time errors for mismatches. 41 */ 42#ifndef _ANSI_SOURCE 43typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; 44#endif /* not ANSI */ 45 46typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; |