sigreturn man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

sigreturn(2)							  sigreturn(2)

       sigreturn - Return from a signal

       #include <signal.h>

       int sigreturn(
	       struct sigcontext *scp );

       Points  to  a  sigcontext structure whose members contain the processor
       state to be restored. The contents of the sigcontext  structure	should
       have  been  previously  obtained by entry to a signal handler or by the
       setjmp() or sigsetjmp() function.

       The sigreturn() function restores the processor state  of  the  calling
       process from a sigcontext structure.  The sigcontext structure contains
       the state of all application-visible registers as well  as  the	signal
       mask.  The  specific  members of the sigcontext structure depend on the
       machine	architecture.  Each  machine-dependent	structure  member   is
       defined in the <signal.h> include file.

       The  sigreturn()	 function is used internally by the system software to
       restore the processor state on return from a signal handler and from  a
       longjmp()  function,  to restore the state saved by a previous setjmp()
       or sigsetjmp() function.

       An application should use sigreturn() with great caution.

       Upon successful completion, the sigreturn() function does  not  return.
       Otherwise,  a  value of -1 is returned and errno may be set to indicate
       the error.

       If  the	sigreturn()  function  fails,  the  process  context   remains
       unchanged  and  errno  is  set  to one of the following values: The scp
       parameter points to memory space that  is  not  a  valid	 part  of  the
       process	address	 space.	 The sigcontext structure contains unsupported
       or illegal values.

       Functions: sigaction(2), sigvec(2), setjmp(3)


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net