usleep.c 185 B

12345678910
  1. #include <unistd.h>
  2. #include <syscall.h>
  3. DEFN_SYSCALL2(nanosleep, 46, unsigned long, unsigned long);
  4. int usleep(useconds_t usec) {
  5. syscall_nanosleep(0, usec / 10000);
  6. return 0;
  7. }