home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / src / unix / c / sleep < prev    next >
Encoding:
Text File  |  1994-09-30  |  255 b   |  17 lines

  1. static char sccs_id[] = "@(#) sleep.c 1.2 " __DATE__ " HJR";
  2.  
  3. /* sleep.c (c) Copyright 1990 H.Rogers */
  4.  
  5. #include <time.h>
  6. #include <errno.h>
  7.  
  8. #include "sys/unix.h"
  9.  
  10. int
  11. sleep (register time_t s)
  12. {
  13.   s += time (0);
  14.   while (time (0) < s);
  15.   return (0);
  16. }
  17.