2023-05-26 22:21:07 +03:00
|
|
|
#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
|
|
|
|
|
2023-05-26 22:21:07 +03:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2023-05-10 23:00:53 +03:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2023-05-26 22:21:07 +03:00
|
|
|
typedef int jmp_buf[1];
|
|
|
|
typedef int sigjmp_buf[1];
|
2023-05-10 23:00:53 +03:00
|
|
|
|
2023-05-26 22:21:07 +03:00
|
|
|
void longjmp(jmp_buf env, int val);
|
|
|
|
void siglongjmp(sigjmp_buf env, int val);
|
|
|
|
int setjmp(jmp_buf env);
|
|
|
|
int sigsetjmp(sigjmp_buf env, int savemask);
|
2023-05-10 23:00:53 +03:00
|
|
|
|
|
|
|
__END_DECLS
|
2023-05-26 22:21:07 +03:00
|
|
|
|
|
|
|
#endif
|