11 lines
214 B
C
11 lines
214 B
C
#include <unistd.h>
|
|
#include <syscall.h>
|
|
|
|
DEFN_SYSCALL2(nanosleep, 46, unsigned long, unsigned long);
|
|
|
|
int usleep(useconds_t usec) {
|
|
syscall_nanosleep((usec / 10000) / 1000, (usec / 10000) % 1000);
|
|
return 0;
|
|
}
|
|
|