The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

ucontext - user context

 SYNOPSIS



#include <ucontext.h>

 DESCRIPTION

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

The <ucontext.h> header defines the ucontext_t 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 sigset_t and stack_t 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 *);

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

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

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]