home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / distri~1 / updates / doc1.zoo / docs.zoo / usr / man / cat2 / psigretu.2 < prev    next >
Encoding:
Text File  |  1993-03-14  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Psigreturn(2)              Oct. 1, 1991             Psigreturn(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Psigreturn - exit from a signal handler
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        void Psigreturn();
  12.  
  13. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  14.        _✓P_✓s_✓i_✓g_✓r_✓e_✓t_✓u_✓r_✓n  is  used to prepare to exit from a signal han-
  15.        dler. This is done automatically by the kernel when a sig-
  16.        nal handler returns, so it is needed only before a program
  17.        uses the C _✓l_✓o_✓n_✓g_✓j_✓m_✓p function (or some similar facility)  to
  18.        do a non-local jump.  _✓P_✓s_✓i_✓g_✓r_✓e_✓t_✓u_✓r_✓n will fail (harmlessly) if
  19.        no signal is being processed at the time it is called.
  20.  
  21.        Note that the MiNT library _✓l_✓o_✓n_✓g_✓j_✓m_✓p function  already  con-
  22.        tains  a  call  to  _✓P_✓s_✓i_✓g_✓r_✓e_✓t_✓u_✓r_✓n,  so  if  you're using that
  23.        library you don't need to worry about this.
  24.  
  25. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  26.        _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2)
  27.  
  28. B✓BU✓UG✓GS✓S
  29.        Calling _✓P_✓s_✓i_✓g_✓r_✓e_✓t_✓u_✓r_✓n from a signal handler, and  then  actu-
  30.        ally  returning  from  that  handler, is likely to produce
  31.        extremely unpleasant results.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.