summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/msleep.c
blob: 1f70a7b3526a007e4d9fe828e1763dd4b096b45e (plain)
1
2
3
4
5
6
7
8
// Not standard, but it feels like it should be.
#include <stdint.h>
#include <syscall.h>
#include <unistd.h>

void msleep(uint32_t ms) {
  syscall(SYS_MSLEEP, (void *)ms, 0, 0, 0, 0);
}