File:  [DVB] / dietlibc / libpthread / pthread_sys_sleep.c
Revision 1.1: download - view: text, annotated - select for diffs
Mon Aug 18 17:32:53 2003 UTC (20 years, 9 months ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
- checkin of the new libpthread
- add confstr

#include <unistd.h>
#include <time.h>

unsigned int sleep(unsigned int secs) {
  struct timespec t;
  t.tv_sec=secs;
  t.tv_nsec=0;
  nanosleep(&t,&t);
  return secs-t.tv_sec;
}


LinuxTV legacy CVS <linuxtv.org/cvs>