X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fucontext.h;h=cd6d223ec115578f80d2e6fb4aa27b9b53938b0d;hp=db335677b79717410dfed7bc587cd87019defa9a;hb=ad2fe25041622b6cf426b0f98af0e52c2c9727f6;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/ucontext.h b/include/ucontext.h index db335677..cd6d223e 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -6,26 +6,9 @@ extern "C" { #include -struct __fpstate { - unsigned long __x[7]; - unsigned char __y[80]; - unsigned long __z; -}; - -typedef struct { - unsigned long __gregs[19]; - void *__fpregs; - unsigned long __oldmask, __cr2; -} mcontext_t; - -typedef struct __ucontext { - unsigned long uc_flags; - struct __ucontext *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct __fpstate __fpregs_mem; -} ucontext_t; +#ifdef _GNU_SOURCE +#define ucontext __ucontext +#endif int getcontext(ucontext_t *); void makecontext(ucontext_t *, void (*)(void), int, ...);