2 * Copyright 2004-2012 Haiku, Inc.
3 * Distributed under the terms of the MIT License.
9 #include <config/HaikuConfig.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
;
21 typedef jmp_buf sigjmp_buf
;
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
);
40 #endif /* _SETJMP_H_ */