LibC: Add dummy setjmp.h

This commit is contained in:
Bananymous 2023-05-10 23:00:53 +03:00
parent f31da19266
commit 01fa521a03
1 changed files with 19 additions and 0 deletions

19
libc/include/setjmp.h Normal file
View File

@ -0,0 +1,19 @@
#pragma once
#include <sys/cdefs.h>
// 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