URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [unistd/] [usleep.c] - Rev 1771
Go to most recent revision | Compare with Previous | Blame | View Log
#include <time.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> int usleep (__useconds_t usec) { const struct timespec ts = { .tv_sec = (long int) (usec / 1000000), .tv_nsec = (long int) (usec % 1000000) * 1000ul }; return(nanosleep(&ts, NULL)); }
Go to most recent revision | Compare with Previous | Blame | View Log