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

  1.  
  2. USLEEP(3)                  UNIX Programmer's Manual                  USLEEP(3)
  3.  
  4. NNAAMMEE
  5.      uusslleeeepp - suspend execution for interval of microseconds
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _v_o_i_d
  11.      uusslleeeepp(_u___i_n_t _m_i_c_r_o_s_e_c_o_n_d_s)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The sslleeeepp() function suspends execution of the calling process for
  15.      _m_i_c_r_o_s_e_c_o_n_d_s of time.  System activity or time spent in processing the
  16.      call may lengthen the sleep slightly.
  17.  
  18.      If a timer is already running on the process its state is saved.  If the
  19.      value _m_i_c_r_o_s_e_c_o_n_d_s is more than or equal to the remaining clock time for
  20.      the saved timer, the sleep time is set to the remaining clock time.  The
  21.      state of the previous timer is restored after _m_i_c_r_o_s_e_c_o_n_d_s has passed.
  22.  
  23.      This routine is implemented using setitimer(2);  it requires eight system
  24.      calls each time it is invoked.  A similar but less compatible function
  25.      can be obtained with a single select(2);  such a function would not
  26.      restart after signals, but would not interfere with other uses of
  27.      setitimer.
  28.  
  29. SSEEEE AALLSSOO
  30.      setitimer(2),  getitimer(2),  sigpause(2),  ualarm(3),  sleep(3),
  31.      alarm(3)
  32.  
  33. HHIISSTTOORRYY
  34.      The uusslleeeepp() function appeared in 4.3BSD.
  35.  
  36. 4.3 Berkeley Distribution       April 19, 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.