Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / posix / setjmp.h
blob67f4ec04be6cd79acb6fe85c695464444cd692ab
1 /*
2 * Copyright 2004-2012 Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _SETJMP_H_
6 #define _SETJMP_H_
9 #include <config/HaikuConfig.h>
11 #include <signal.h>
13 /* include architecture specific definitions */
14 #include __HAIKU_ARCH_HEADER(arch_setjmp.h)
16 typedef struct __jmp_buf_tag {
17 __jmp_buf regs; /* saved registers, stack & program pointer */
18 sigset_t inverted_signal_mask;
19 } jmp_buf[1];
21 typedef jmp_buf sigjmp_buf;
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 extern int _setjmp(jmp_buf jumpBuffer);
29 extern int setjmp(jmp_buf jumpBuffer);
30 extern int sigsetjmp(jmp_buf jumpBuffer, int saveMask);
32 extern void _longjmp(jmp_buf jumpBuffer, int value);
33 extern void longjmp(jmp_buf jumpBuffer, int value);
34 extern void siglongjmp(sigjmp_buf jumpBuffer, int value);
36 #ifdef __cplusplus
38 #endif
40 #endif /* _SETJMP_H_ */