*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> sigreturn (2)              



NAME    [Toc]    [Back]

       sigreturn - return from signal handler and cleanup stack frame

SYNOPSIS    [Toc]    [Back]

       int sigreturn(unsigned long __unused);

DESCRIPTION    [Toc]    [Back]

       When  the  Linux kernel creates the stack frame for a signal handler, a
       call to sigreturn is inserted into the stack frame so that the the signal
  handler  will  call  sigreturn  upon return. This inserted call to
       sigreturn cleans up the stack so that  the  process  can  restart  from
       where it was interrupted by the signal.

RETURN VALUE    [Toc]    [Back]

       sigreturn never returns.

WARNING    [Toc]    [Back]

       The  sigreturn call is used by the kernel to implement signal handlers.
       It should never be called directly. Better yet, the specific use of the
       __unused argument varies depending on the architecture.

CONFORMING TO    [Toc]    [Back]

       sigreturn  is  specific	to  Linux  and	should not be used in programs
       intended to be portable.

FILES    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

       kill(2), signal(2), signal(7)

Linux 1.3.20			  1995-08-21			  SIGRETURN(2)
[ Back ]
 Similar pages
Name OS Title
pthread_cleanup_pop Tru64 (Macro) Removes the cleanup handler routine from the calling thread's cleanup handler stack and opti...
pthread_cleanup_push Tru64 (Macro) Establishes a cleanup handler routine to be executed when the thread exits or is canceled
sigreturn IRIX returns from a signal handler.
uplevel IRIX Execute a script in a different stack frame
upvar IRIX Create link to variable in a different stack frame
sigstack OpenBSD set and/or get signal stack context
sigstack FreeBSD set and/or get signal stack context
sigstack NetBSD set and/or get signal stack context
sigstack IRIX set and/or get signal stack context
sigaltstack OpenBSD set and/or get signal stack context
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service