1SIGRETURN(2)               Linux Programmer's Manual              SIGRETURN(2)
2
3
4

NAME

6       sigreturn - return from signal handler and cleanup stack frame
7

SYNOPSIS

9       int sigreturn(unsigned long __unused);
10

DESCRIPTION

12       When  the  Linux kernel creates the stack frame for a signal handler, a
13       call to sigreturn() is inserted into the stack frame so that the signal
14       handler will call sigreturn() upon return. This inserted call to sigre‐
15       turn() cleans up the stack so that the process can restart  from  where
16       it was interrupted by the signal.
17

RETURN VALUE

19       sigreturn() never returns.
20

WARNING

22       The  sigreturn()  call  is  used by the kernel to implement signal han‐
23       dlers. It should never be called directly. Better yet, the specific use
24       of the __unused argument varies depending on the architecture.
25

CONFORMING TO

27       sigreturn()  is  specific  to  Linux and should not be used in programs
28       intended to be portable.
29

FILES

31       /usr/src/linux/arch/i386/kernel/signal.c
32       /usr/src/linux/arch/alpha/kernel/entry.S
33

SEE ALSO

35       kill(2), signal(2), signal(7)
36
37
38
39Linux 1.3.20                      1995-08-21                      SIGRETURN(2)
Impressum