Deleted Added
full compact
setjmp.h (104493) setjmp.h (104505)
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

--- 15 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 *
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

--- 15 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 * $FreeBSD: head/sys/amd64/include/setjmp.h 104493 2002-10-04 22:10:06Z mike $
32 * $FreeBSD: head/sys/amd64/include/setjmp.h 104505 2002-10-05 05:47:56Z mike $
33 */
34
35#ifndef _MACHINE_SETJMP_H_
36#define _MACHINE_SETJMP_H_
37
33 */
34
35#ifndef _MACHINE_SETJMP_H_
36#define _MACHINE_SETJMP_H_
37
38#include <sys/cdefs.h>
39
38#define _JBLEN 11 /* Size of the jmp_buf on x86. */
39
40/*
41 * jmp_buf and sigjmp_buf are encapsulated in different structs to force
42 * compile-time diagnostics for mismatches. The structs are the same
43 * internally to avoid some run-time errors for mismatches.
44 */
40#define _JBLEN 11 /* Size of the jmp_buf on x86. */
41
42/*
43 * jmp_buf and sigjmp_buf are encapsulated in different structs to force
44 * compile-time diagnostics for mismatches. The structs are the same
45 * internally to avoid some run-time errors for mismatches.
46 */
45#ifndef _ANSI_SOURCE
47#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
46typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
47#endif
48
49typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
50
51#endif /* !_MACHINE_SETJMP_H_ */
48typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
49#endif
50
51typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
52
53#endif /* !_MACHINE_SETJMP_H_ */