1<ucontext.h>(0P)           POSIX Programmer's Manual          <ucontext.h>(0P)
2
3
4

NAME

6       ucontext.h - user context
7

SYNOPSIS

9       #include <ucontext.h>
10

DESCRIPTION

12       The  <ucontext.h> header shall define the mcontext_t type through type‐
13       def.
14
15       The <ucontext.h> header shall define the ucontext_t type as a structure
16       that shall include at least the following members:
17
18
19              ucontext_t *uc_link     Pointer to the context that is resumed
20                                      when this context returns.
21              sigset_t    uc_sigmask  The set of signals that are blocked when this
22                                      context is active.
23              stack_t     uc_stack    The stack used by this context.
24              mcontext_t  uc_mcontext A machine-specific representation of the saved
25                                      context.
26
27       The types sigset_t and stack_t shall be defined as in <signal.h> .
28
29       The following shall be declared as functions and may also be defined as
30       macros, Function prototypes shall be provided.
31
32
33              int  getcontext(ucontext_t *);
34              int  setcontext(const ucontext_t *);
35              void makecontext(ucontext_t *, void (*)(void), int, ...);
36              int  swapcontext(ucontext_t *restrict, const ucontext_t *restrict);
37
38       The following sections are informative.
39

APPLICATION USAGE

41       None.
42

RATIONALE

44       None.
45

FUTURE DIRECTIONS

47       None.
48

SEE ALSO

50       <signal.h>, the System Interfaces volume of IEEE Std 1003.1-2001,  get‐
51       context(), makecontext(), sigaction(), sigprocmask(), sigaltstack()
52
54       Portions  of  this text are reprinted and reproduced in electronic form
55       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
56       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
57       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
58       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
59       event of any discrepancy between this version and the original IEEE and
60       The  Open Group Standard, the original IEEE and The Open Group Standard
61       is the referee document. The original Standard can be  obtained  online
62       at http://www.opengroup.org/unix/online.html .
63
64
65
66IEEE/The Open Group                  2003                     <ucontext.h>(0P)
Impressum