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

  1.  
  2. SIGINTERRUPT(3)            UNIX Programmer's Manual            SIGINTERRUPT(3)
  3.  
  4. NNAAMMEE
  5.      ssiiggiinntteerrrruupptt - allow signals to interrupt system calls
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssiiggnnaall..hh>>
  9.  
  10.      _i_n_t
  11.      ssiiggiinntteerrrruupptt(_i_n_t _s_i_g, _i_n_t _f_l_a_g)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The ssiiggiinntteerrrruupptt() function is used to change the system call restart be­
  15.      havior when a system call is interrupted by the specified signal.  If the
  16.      flag is false (0), then system calls will be restarted if they are inter­
  17.      rupted by the specified signal and no data has been transferred yet.
  18.      System call restart is the default behavior on 4.2BSD.
  19.  
  20.      If the flag is true (1), then restarting of system calls is disabled.  If
  21.      a system call is interrupted by the specified signal and no data has been
  22.      transferred, the system call will return -1 with the global variable
  23.      _e_r_r_n_o set to EINTR. Interrupted system calls that have started transfer­
  24.      ring data will return the amount of data actually transferred.  System
  25.      call interrupt is the signal behavior found on 4.1BSD and AT&T System V
  26.      UNIX systems.
  27.  
  28.      Note that the new 4.2BSD signal handling semantics are not altered in any
  29.      other way.  Most notably, signal handlers always remain installed until
  30.      explicitly changed by a subsequent sigaction(2) call, and the signal mask
  31.      operates as documented in sigaction(2).  Programs may switch between
  32.      restartable and interruptible system call operation as often as desired
  33.      in the execution of a program.
  34.  
  35.      Issuing a ssiiggiinntteerrrruupptt(_3) call during the execution of a signal handler
  36.      will cause the new action to take place on the next signal to be caught.
  37.  
  38. NNOOTTEESS
  39.      This library routine uses an extension of the sigaction(2) system call
  40.      that is not available in 4.2BSD, hence it should not be used if backward
  41.      compatibility is needed.
  42.  
  43. RREETTUURRNN VVAALLUUEESS
  44.      A 0 value indicates that the call succeeded.  A -1 value indicates that
  45.      an invalid signal number has been supplied.
  46.  
  47. SSEEEE AALLSSOO
  48.      sigaction(2),  sigblock(2),  sigpause(2),  sigsetmask(2).
  49.  
  50. HHIISSTTOORRYY
  51.      The ssiiggiinntteerrrruupptt() function appeared in 4.3BSD.
  52.  
  53. 4.3 Berkeley Distribution       April 19, 1991                               1
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.