mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-17 18:35:48 +00:00

Most of the changes are in threads, TLS, dynamic linking, and other features wasi doesn't yet use, but there are some bug fixes in code wasi does use. atanl.c - local changes no longer needed as they've now landed upstream. include/alltypes.h.in - Upstream now makes FILE a complete type in pre-C11 mode. For WASI, this level of pre-C11 strictness isn't as important, and having multiple incompatible definitions of _IO_FILE that are kept separate only by clever use of translation unit boundaries can confuse some tools, so stick with the incomplete type.
26 lines
495 B
C
26 lines
495 B
C
#ifndef _UCONTEXT_H
|
|
#define _UCONTEXT_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
#define NGREG (sizeof(gregset_t)/sizeof(greg_t))
|
|
#endif
|
|
|
|
struct __ucontext;
|
|
|
|
int getcontext(struct __ucontext *);
|
|
void makecontext(struct __ucontext *, void (*)(), int, ...);
|
|
int setcontext(const struct __ucontext *);
|
|
int swapcontext(struct __ucontext *, const struct __ucontext *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|