home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / emacs-19.28-src.tgz / tar.out / fsf / emacs / unixlib / src / sleep.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  241b  |  14 lines

  1. #include "amiga.h"
  2. #include "timers.h"
  3. #include "signals.h"
  4.  
  5. int sleep(unsigned seconds)
  6. {
  7.   chkabort();
  8.   _timer_start(_odd_timer, seconds, 0);
  9.  
  10.   while (!_timer_expired(_odd_timer)) _handle_signals(_wait_signals(_odd_sig));
  11.  
  12.   return 0;
  13. }
  14.