diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-04 16:16:50 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-04 16:16:50 +0200 |
commit | 04b9dc2d30cfc9b383029f6a4b02e2725108b0ae (patch) | |
tree | e117a998173b767f9fd009d49c4f8573d8b85432 /Libraries/LibC/setjmp.h | |
parent | 63814ffebf16291419745cd8ba29a4d2fd888563 (diff) | |
download | serenity-04b9dc2d30cfc9b383029f6a4b02e2725108b0ae.zip |
Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
Diffstat (limited to 'Libraries/LibC/setjmp.h')
-rw-r--r-- | Libraries/LibC/setjmp.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Libraries/LibC/setjmp.h b/Libraries/LibC/setjmp.h new file mode 100644 index 0000000000..a6511a38f6 --- /dev/null +++ b/Libraries/LibC/setjmp.h @@ -0,0 +1,25 @@ +#pragma once + +#include <signal.h> +#include <stdbool.h> +#include <stdint.h> +#include <sys/cdefs.h> +#include <sys/types.h> + +__BEGIN_DECLS + +struct __jmp_buf { + uint32_t regs[6]; + bool did_save_signal_mask; + sigset_t saved_signal_mask; +}; + +typedef struct __jmp_buf jmp_buf[1]; + +int setjmp(jmp_buf); +void longjmp(jmp_buf, int val); + +int sigsetjmp(jmp_buf, int savesigs); +void siglongjmp(jmp_buf, int val); + +__END_DECLS |