|SIGRETURN(2)||System Calls Manual||SIGRETURN(2)|
sigreturn(struct sigcontext *scp);
sigreturn() syscall is used by the signal handling facility to atomically switch stacks, restore registers and the thread's signal mask, and return from a signal context to resume the processing that was interrupted by the signal.
Note that sigcontext contains machine dependent information.
Direct use of
sigreturn is no longer
supported and it is not provided as a function. As used in the signal
trampoline provided by the system, if
fails and returns then the process is terminated.
sigreturn() will fail and the process context will remain unchanged if one of the following occurs.
sigreturn() function appeared in 4.3BSD. The function was removed from libc in OpenBSD 6.0.
|May 9, 2016||OpenBSD-current|