1 '\" te
   2 .\"  Copyright 1989 AT&T  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH UCONTEXT.H 3HEAD "Aug 30, 2002"
   7 .SH NAME
   8 ucontext.h, ucontext \- user context
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <\fBucontext.h\fR>
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 .sp
  17 .LP
  18 The  <\fBucontext.h\fR> header defines the \fBucontext_t\fR type as a structure
  19 that includes at least the following members:
  20 .sp
  21 .in +2
  22 .nf
  23 ucontext_t  uc_link
  24 sigset_t    uc_sigmask
  25 stack_t     uc_stack
  26 mcontext_t  uc_mcontext
  27 .fi
  28 .in -2
  29 
  30 .sp
  31 .LP
  32 The \fBuc_link\fR member is a pointer to the context that to be resumed when
  33 this context returns. If \fBuc_link\fR is equal to 0, this context is the main
  34 context and the process exits when this context returns.
  35 .sp
  36 .LP
  37 The \fBuc_sigmask\fR member defines the set of signals that are blocked when
  38 this context is active. See \fBsigprocmask\fR(2).
  39 .sp
  40 .LP
  41 The \fBuc_stack\fR member defines the stack used by this context. See
  42 \fBsigaltstack\fR(2).
  43 .sp
  44 .LP
  45 The \fBuc_mcontext\fR member contains the saved set of machine registers and
  46 any implementation-specific context data. Portable applications should not
  47 modify or access \fBuc_mcontext\fR.
  48 .SH ATTRIBUTES
  49 .sp
  50 .LP
  51 See \fBattributes\fR(5) for descriptions of the following attributes:
  52 .sp
  53 
  54 .sp
  55 .TS
  56 box;
  57 c | c
  58 l | l .
  59 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  60 _
  61 Interface Stability     Standard
  62 .TE
  63 
  64 .SH SEE ALSO
  65 .sp
  66 .LP
  67 \fBgetcontext\fR(2), \fBsigaction\fR(2), \fBsigaltstack\fR(2),
  68 \fBsigprocmask\fR(2), \fBmakecontext\fR(3C), \fBattributes\fR(5),
  69 \fBstandards\fR(5)