1 /* 2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <time.h> 8 9 #include <errno.h> 10 11 #include <syscall_utils.h> 12 13 14 int 15 nanosleep(const struct timespec* time, struct timespec* remainingTime) 16 { 17 RETURN_AND_SET_ERRNO( 18 clock_nanosleep(CLOCK_MONOTONIC, 0, time, remainingTime)); 19 } 20 21