Return to pthread_sys_sleep.c CVS log | Up to [DVB] / dietlibc / libpthread |
- 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; }