banan-os/userspace/libraries/LibC/include/setjmp.h

24 lines
467 B
C
Raw Normal View History

#ifndef _SETJMP_H
#define _SETJMP_H 1
2023-05-10 23:00:53 +03:00
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/setjmp.h.html
#include <sys/cdefs.h>
2023-05-10 23:00:53 +03:00
__BEGIN_DECLS
typedef long jmp_buf[2];
typedef long sigjmp_buf[2 + 1 + (sizeof(long long) / sizeof(long))];
2023-05-10 23:00:53 +03:00
#define _longjmp longjmp
void longjmp(jmp_buf env, int val);
void siglongjmp(sigjmp_buf env, int val);
#define _setjmp setjmp
int setjmp(jmp_buf env);
int sigsetjmp(sigjmp_buf env, int savemask);
2023-05-10 23:00:53 +03:00
__END_DECLS
#endif