2018-11-05 18:40:48 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <sys/types.h>
|
2019-02-26 16:05:28 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdbool.h>
|
2018-11-05 18:40:48 +03:00
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2019-02-26 16:05:28 +03:00
|
|
|
struct __jmp_buf {
|
|
|
|
uint32_t regs[6];
|
|
|
|
bool did_save_signal_mask;
|
|
|
|
sigset_t saved_signal_mask;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct __jmp_buf jmp_buf[1];
|
2018-11-05 18:40:48 +03:00
|
|
|
|
|
|
|
int setjmp(jmp_buf);
|
|
|
|
void longjmp(jmp_buf, int val);
|
|
|
|
|
2019-02-26 16:05:28 +03:00
|
|
|
int sigsetjmp(jmp_buf, int savesigs);
|
|
|
|
void siglongjmp(jmp_buf, int val);
|
|
|
|
|
2018-11-05 18:40:48 +03:00
|
|
|
__END_DECLS
|