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 "posix_error_mapper.h"
10
11
12WRAPPER_FUNCTION(int, clock_nanosleep,
13		(clockid_t clockID, int flags, const struct timespec* time,
14			struct timespec* remainingTime),
15	return B_TO_POSITIVE_ERROR(sReal_clock_nanosleep(clockID, flags, time,
16		remainingTime));
17)
18
19
20WRAPPER_FUNCTION(int, clock_getcpuclockid,
21		(pid_t pid, clockid_t* _clockID),
22	return B_TO_POSITIVE_ERROR(sReal_clock_getcpuclockid(pid, _clockID));
23)
24