mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
e61d3b10d7
<sys/cdefs.h>.
25 lines
619 B
C
25 lines
619 B
C
/*-
|
|
* $NetBSD: setjmp.h,v 1.3 1998/09/16 23:51:27 thorpej Exp $
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
#ifndef _MACHINE_SETJMP_H_
|
|
#define _MACHINE_SETJMP_H_
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#define _JBLEN 100
|
|
|
|
/*
|
|
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
|
|
* compile-time diagnostics for mismatches. The structs are the same
|
|
* internally to avoid some run-time errors for mismatches.
|
|
*/
|
|
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
|
|
typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
|
|
#endif
|
|
|
|
typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
|
|
|
|
#endif /* !_MACHINE_SETJMP_H_ */
|