sigret(2) SDK R4.11 sigret(2)
NAME
sigret - restore the process state to that contained in a signal
frame
SYNOPSIS
#include <signal.h>
void sigret ()
DESCRIPTION
The sigret call is used to restore the process to the state before it
invoked a signal handler (that is, this is a "return from signal
handler"). The state is pointed to by the stack pointer and contains
a signal frame that was pushed onto the process stack when the signal
handler was invoked.
Generally, the signal frame should be identical to the values in the
original signal frame pushed onto the user's stack. There are some
fields of the signal frame that can be modified to alter the process
context when it returns from the signal handler [see siginfo(5)].
ACCESS CONTROL
None.
RETURN VALUE
This function never returns. Execution resumes at the context
specified by the signal frame. If an error occurs, this function
terminates the process with an exit status which indicates that the
process was killed by a SIGSEGV signal.
DIAGNOSTICS
Errno may be set to one of the following error codes:
EFAULT The signal frame pointed to by the stack pointer could not
be accessed.
EINVAL The signal frame pointed to by the stack pointer contains
invalid information.
SEE ALSO
kill(2), ptrace(2), sigblock(2), sigpause(2), sigsetmask(2),
sigstack(2), sigvec(2), siginfo(5).
Licensed material--property of copyright holder(s)