Add getcontext() and setcontext()

Fixes #413
This commit is contained in:
Justine Tunney 2022-06-23 05:59:57 -07:00
parent 2b54f1bcf6
commit 3fc23c6cbc
4 changed files with 204 additions and 0 deletions

View file

@ -82,6 +82,9 @@ struct ucontext {
typedef struct ucontext ucontext_t;
int getcontext(ucontext_t *);
int setcontext(const ucontext_t *);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_CALLS_UCONTEXT_H_ */