NAME
uuccoonntteexxtt - user thread context
LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
> DESCRIPTION
The ucontextt type is a structure type suitable for holding the context
for a user thread of execution. A thread's context includes its stack, saved registers, and list of blocked signals.The ucontextt structure contains at least these fields:
ucontextt *uclink context to assume when this one returns
sigsett ucsigmask signals being blocked stackt ucstack stack area mcontextt ucmcontext saved registers The uclink field points to the context to resume when this context's entry point function returns. If uclink is equal to NULL, then the process exits when this context returns.The ucmcontext field is machine-dependent and should be treated as
opaque by portable applications.The following functions are defined to manipulate ucontextt structures:
int ggeettccoonntteexxtt(ucontextt *);
int sseettccoonntteexxtt(const ucontextt *);
void mmaakkeeccoonntteexxtt(ucontextt *, void (*)(void), int, ...);
int sswwaappccoonntteexxtt(ucontextt *, const ucontextt *);
SEE ALSO
sigaltstack(2), getcontext(3), makecontext(3) BSD September 10, 2002 BSD