X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fucontext.h;h=0f75712548c3492f3257f661c973856bfe59dde4;hb=d990090384c6a468bb86962baf8bae7b6fd1d2bf;hp=cd6d223ec115578f80d2e6fb4aa27b9b53938b0d;hpb=ad2fe25041622b6cf426b0f98af0e52c2c9727f6;p=musl diff --git a/include/ucontext.h b/include/ucontext.h index cd6d223e..0f757125 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -4,16 +4,20 @@ extern "C" { #endif +#include + #include -#ifdef _GNU_SOURCE -#define ucontext __ucontext +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define NGREG (sizeof(gregset_t)/sizeof(greg_t)) #endif -int getcontext(ucontext_t *); -void makecontext(ucontext_t *, void (*)(void), int, ...); -int setcontext(const ucontext_t *); -int swapcontext(ucontext_t *, const ucontext_t *); +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 }