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

  1.  
  2. SIGSUSPEND(2)              UNIX Programmer's Manual              SIGSUSPEND(2)
  3.  
  4. NNAAMMEE
  5.      ssiiggssuussppeenndd - atomically release blocked signals and wait for interrupt
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssiiggnnaall..hh>>
  9.  
  10.      _i_n_t
  11.      ssiiggssuussppeenndd(_c_o_n_s_t _s_i_g_s_e_t___t _*_s_i_g_m_a_s_k)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      SSiiggssuussppeenndd() temporarily changes the blocked signal mask to the set to
  15.      which _s_i_g_m_a_s_k points, and then waits for a signal to arrive; on return
  16.      the previous set of masked signals is restored.  The signal mask set is
  17.      usually empty to indicate that all signals are to be unblocked for the
  18.      duration of the call.
  19.  
  20.      In normal usage, a signal is blocked using sigprocmask(2) to begin a
  21.      critical section, variables modified on the occurrence of the signal are
  22.      examined to determine that there is no work to be done, and the process
  23.      pauses awaiting work by using ssiiggssuussppeenndd() with the previous mask re­
  24.      turned by sigprocmask.
  25.  
  26. RREETTUURRNN VVAALLUUEESS
  27.      The ssiiggssuussppeenndd() function always terminates by being interrupted, return­
  28.      ing ­1 with _e_r_r_n_o set to EINTR.
  29.  
  30. SSEEEE AALLSSOO
  31.      sigprocmask(2),  sigaction(2),  sigsetops(3)
  32.  
  33. SSTTAANNDDAARRDDSS
  34.      The ssiiggssuuppeenndd function call conforms to IEEE Std1003.1­1988 (``POSIX'').
  35.  
  36. BSD Experimental                 July 23, 1991                               1
  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.  
  65.  
  66.  
  67.