headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / posix / time / nanosleep.c
blobfaf8fde7c1a516606880a2241c9f165dd40d1f1f
1 /*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <time.h>
9 #include <errno.h>
11 #include <errno_private.h>
12 #include <syscall_utils.h>
15 int
16 nanosleep(const struct timespec* time, struct timespec* remainingTime)
18 RETURN_AND_SET_ERRNO(
19 clock_nanosleep(CLOCK_MONOTONIC, 0, time, remainingTime));