toaruos/libc/unistd/sleep.c

8 lines
111 B
C

#include <syscall.h>
unsigned int sleep(unsigned int seconds) {
syscall_nanosleep(seconds, 0);
return 0;
}