add a missing section header table index conversion
[tangerine.git] / compiler / clib / include / setjmp.h
blob535e758e7c4d84c651d0a05c56818d30dbe20d39
1 #ifndef _SETJMP_H_
2 #define _SETJMP_H_
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: ANSI-C header file setjmp.h
9 Lang: english
12 #include <sys/cdefs.h>
14 #ifdef __mc68000__
15 # define _JMPLEN 12
16 #elif __i386__
17 # define _JMPLEN 7
18 #elif __x86_64__
19 # define _JMPLEN 15
20 #elif __powerpc__ || __ppc__
21 # define _JMPLEN 58
22 #endif
24 typedef struct __jmp_buf
26 unsigned long retaddr;
27 unsigned long regs[_JMPLEN];
28 } jmp_buf[1];
30 #if !defined(_ANSI_SOURCE)
31 typedef struct __sigjmp_buf
33 unsigned long retaddr;
34 unsigned long regs[_JMPLEN];
35 } sigjmp_buf[1];
36 #endif /* !_ANSI_SOURCE */
38 /* Prototypes */
39 __BEGIN_DECLS
40 int setjmp (jmp_buf env);
41 void longjmp (jmp_buf env, int val) __noreturn ;
43 #if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
44 /* Unix functions */
45 /* NOTIMPL void siglongjmp(sigjmp_buf, int) __noreturn ; */
46 /* NOTIMPL int sigsetjmp(sigjmp_buf, int); */
48 /* NOTIMPL void _longjmp(jmp_buf, int) __noreturn ; */
49 /* NOTIMPL int _setjmp(jmp_buf); */
51 #endif /* __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE */
53 __END_DECLS
55 #endif /* _SETJMP_H_ */