blob: 51c7fd27c4691b6ca640b2f3ce48d3bac25027ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include <user/lib/panic.h>
typedef char jmp_buf[1];
typedef char sigjmp_buf[1];
static inline int setjmp(jmp_buf env) {
(void)env;
return 0;
}
static inline int sigsetjmp(sigjmp_buf env, int savemask) {
(void)env; (void)savemask;
return 0;
}
static inline _Noreturn void longjmp(jmp_buf env, int val) {
(void)env; (void)val;
__libc_panic("unimplemented");
}
static inline _Noreturn void siglongjmp(sigjmp_buf env, int val) {
(void)env; (void)val;
__libc_panic("unimplemented");
}
|