X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fucontext.h;h=cd6d223ec115578f80d2e6fb4aa27b9b53938b0d;hp=96c27cb7acf6b78ab8bad16b0229bc7d9ab68d43;hb=ad2fe25041622b6cf426b0f98af0e52c2c9727f6;hpb=e9417fffb39c299e556c5ad0c1545f0c02618e3c diff --git a/include/ucontext.h b/include/ucontext.h index 96c27cb7..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, ...);