diff options
Diffstat (limited to 'libc/include/setjmp.h')
-rw-r--r-- | libc/include/setjmp.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h new file mode 100644 index 0000000..c2bfadb --- /dev/null +++ b/libc/include/setjmp.h @@ -0,0 +1,26 @@ + +#ifndef __SETJMP_H +#define __SETJMP_H + +#include <features.h> + +/* + * I know most systems use an array of ints here, but I prefer this - RDB + */ + +typedef struct +{ + unsigned int pc; + unsigned int sp; + unsigned int bp; + unsigned int si; + unsigned int di; +} jmp_buf[1]; + +int setjmp __P((jmp_buf env)); +void longjmp __P((jmp_buf env, int rv)); + +/* LATER: Seems GNU beat me to it, must be OK then :-) + * Humm, what's this about setjmp being a macro !? + */ +#endif |