8 #include <klibc/extern.h>
9 #include <klibc/compiler.h>
12 #if __SIZEOF_POINTER__ == 4
13 #include <klibc/i386/archsetjmp.h>
14 #elif __SIZEOF_POINTER__ == 8
15 #include <klibc/x86_64/archsetjmp.h>
17 #error "unsupported architecture"
20 __extern
int setjmp(jmp_buf);
21 __extern __noreturn
longjmp(jmp_buf, int);
23 typedef jmp_buf sigjmp_buf
;
25 #define sigsetjmp(__env, __save) setjmp(__env)
26 #define siglongjmp(__env, __val) longjmp(__env, __val)
28 #endif /* _SETJMP_H */