UCONTEXT.H(7) Miscellaneous Information Manual UCONTEXT.H(7)

ucontextuser context

#include <ucontext.h>

The <ucontext.h> header defines the mcontext_t type through typedef .

The <ucontext.h> header defines the type as a structure that includes at least the following members: ucontext_t *uc_link pointer to the context that will be resumed when this context returns sigset_t uc_sigmask the set of signals that are blocked when this context is active stack_t uc_stack the stack used by this context mcontext_t uc_mcontext a machine-specific representation of the saved context

The types and are defined as in <signal.h>.

The following are declared as functions and may also be defined as macros, Function prototypes must be provided for use with an ISO C compiler. int getcontext(ucontext_t *); int setcontext(const ucontext_t *); void makecontext(ucontext_t *, (void *)(), int, ...); int swapcontext(ucontext_t *, const ucontext_t *);

None.

None.

getcontext(3) , makecontext(3) , sigaction(3) , sigprocmask(3) , sigaltstack(3) , <signal.h> .

February 1997 posix.fail