From 0adf24fcade2391e02f3e6206f9004ccdd73241d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 10 May 2023 23:00:53 +0300 Subject: [PATCH] LibC: Add dummy setjmp.h --- libc/include/setjmp.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libc/include/setjmp.h diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h new file mode 100644 index 00000000..12394f67 --- /dev/null +++ b/libc/include/setjmp.h @@ -0,0 +1,19 @@ +#pragma once + +#include + +// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/setjmp.h.html + +__BEGIN_DECLS + +typedef int* jmp_buf; +typedef int* sigjmp_buf; + +void _longjmp(jmp_buf, int); +void longjmp(jmp_buf, int); +void siglongjmp(sigjmp_buf, int); +int _setjmp(jmp_buf); +int setjmp(jmp_buf); +int sigsetjmp(sigjmp_buf, int); + +__END_DECLS