xref: /illumos-gate/usr/src/man/man3head/ucontext.h.3head (revision ed093b41a93e8563e6e1e5dae0768dda2a7bcc27)
te
Copyright 1989 AT&T Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
UCONTEXT.H 3HEAD "Aug 30, 2002"
NAME
ucontext.h, ucontext - user context
SYNOPSIS

#include <ucontext.h>
DESCRIPTION

The <ucontext.h> header defines the ucontext_t type as a structure that includes at least the following members:

ucontext_t uc_link
sigset_t uc_sigmask
stack_t uc_stack
mcontext_t uc_mcontext

The uc_link member is a pointer to the context that to be resumed when this context returns. If uc_link is equal to 0, this context is the main context and the process exits when this context returns.

The uc_sigmask member defines the set of signals that are blocked when this context is active. See sigprocmask(2).

The uc_stack member defines the stack used by this context. See sigaltstack(2).

The uc_mcontext member contains the saved set of machine registers and any implementation-specific context data. Portable applications should not modify or access uc_mcontext.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Standard
SEE ALSO

getcontext (2), sigaction (2), sigaltstack (2), sigprocmask (2), makecontext (3C), attributes (7), standards (7)