


      SSSSLLLLEEEEEEEEPPPP((((3333CCCC))))                   ((((UUUUNNNNIIIIXXXX 5555....0000))))                  SSSSLLLLEEEEEEEEPPPP((((3333CCCC))))



      NNNNAAAAMMMMEEEE
           sleep - suspend execution for interval

      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
           uuuunnnnssssiiiiggggnnnneeeedddd sssslllleeeeeeeepppp ((((sssseeeeccccoooonnnnddddssss))))
           uuuunnnnssssiiiiggggnnnneeeedddd sssseeeeccccoooonnnnddddssss;;;;

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           The current process is suspended from execution for the
           number of _s_e_c_o_n_d_s specified by the argument.  The actual
           suspension time may be less than that requested for two
           reasons: (1) Because scheduled wakeups occur at fixed 1-
           second intervals, (on the second, according to an internal
           clock) and (2) because any caught signal will terminate the
           _s_l_e_e_p following execution of that signal's catching routine.
           Also, the suspension time may be longer than requested by an
           arbitrary amount due to the scheduling of other activity in
           the system.  The value returned by _s_l_e_e_p will be the
           ``unslept'' amount (the requested time minus the time
           actually slept) in case the caller had an alarm set to go
           off earlier than the end of the requested _s_l_e_e_p time, or
           premature arousal due to another caught signal.

           The routine is implemented by setting an alarm signal and
           pausing until it (or some other signal) occurs.  The
           previous state of the alarm signal is saved and restored.
           The calling program may have set up an alarm signal before
           calling _s_l_e_e_p; if the _s_l_e_e_p time exceeds the time till such
           alarm signal, the process sleeps only until the alarm signal
           would have occurred, and the caller's alarm catch routine is
           executed just before the _s_l_e_e_p routine returns, but if the
           _s_l_e_e_p time is less than the time till such alarm, the prior
           alarm time is reset to go off at the same time it would have
           without the intervening _s_l_e_e_p.

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           alarm(2B), pause(2B), signal(2B).


















      Page 1                                                   (9010-E)



