sigreturn(2) System Calls Manual sigreturn(2) sigreturn, rt_sigreturn - LIBRARY Standard C library (libc, -lc) int sigreturn(...); Linux , , (, ), , ( , , ). , , << >>(signal trampoline). , , sigreturn(). This sigreturn() call undoes everything that was done--changing the process's signal mask, switching signal stacks (see sigaltstack(2))--in order to invoke the signal handler. Using the information that was earlier saved on the user-space stack sigreturn() restores the process's signal mask, switches stacks, and restores the process's context (processor flags and registers, including the stack pointer and instruction pointer), so that the process resumes execution at the point where it was interrupted by the signal. sigreturn() . UNIX sigreturn() . POSIX, -. None. sigreturn() . ( , sigreturn() GNU C -1 errno ENOSYS). ( ), sigreturn(), ( , x86-64, sigreturn() , , ). - UNIX . . Linux, , vdso(7) C. sigaction(2) C sa_restorer sigaction SA_RESTORER sa_flags. ucontext_t ( ). , sigaction(2) SA_SIGINFO. UNIX . , ( ) ( sigreturn() ). C Linux sigreturn(). Linux 2.2 sigset_t rt_sigreturn(). GNU C , rt_sigreturn(), . . kill(2), restart_syscall(2), sigaltstack(2), signal(2), getcontext(3), signal(7), vdso(7) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . sigreturn(2)