home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat2 / sigreturn.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. SIGRETURN(2)               UNIX Programmer's Manual               SIGRETURN(2)
  3.  
  4. NNAAMMEE
  5.      ssiiggrreettuurrnn - return from signal
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssiiggnnaall..hh>>
  9.      struct sigcontext {
  10.              int sc_onstack;
  11.              int sc_mask;
  12.              int sc_sp;
  13.              int sc_fp;
  14.              int sc_ap;
  15.              int sc_pc;
  16.              int sc_ps;
  17.      };
  18.  
  19.      _i_n_t
  20.      ssiiggrreettuurrnn(_s_t_r_u_c_t _s_i_g_c_o_n_t_e_x_t _*_s_c_p)
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      SSiiggrreettuurrnn() allows users to atomically unmask, switch stacks, and return
  24.      from a signal context.  The processes signal mask and stack status are
  25.      restored from the context.  The system call does not return; the users
  26.      stack pointer, frame pointer, argument pointer, and processor status
  27.      longword are restored from the context.  Execution resumes at the speci­
  28.      fied pc.  This system call is used by the trampoline code and longjmp(3)
  29.      when returning from a signal to the previously executing program.
  30.  
  31. NNOOTTEESS
  32.      This system call is not available in 4.2 BSD hence it should not be used
  33.      if backward compatibility is needed.
  34.  
  35. RREETTUURRNN VVAALLUUEESS
  36.      If successful, the system call does not return.  Otherwise, a value of ­1
  37.      is returned and _e_r_r_n_o is set to indicate the error.
  38.  
  39. EERRRROORRSS
  40.      SSiiggrreettuurrnn() will fail and the process context will remain unchanged if
  41.      one of the following occurs.
  42.  
  43.      [EFAULT]  _S_c_p points to memory that is not a valid part of the process
  44.                address space.
  45.  
  46.      [EINVAL]  The process status longword is invalid or would improperly
  47.                raise the privilege level of the process.
  48.  
  49. SSEEEE AALLSSOO
  50.      sigvec(2),  setjmp(3)
  51.  
  52. HHIISSTTOORRYY
  53.      The ssiiggrreettuurrnn function call appeared in 4.3BSD.
  54.  
  55. 4.3 Berkeley Distribution       March 10, 1991                               1
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.