Make UEFI boot-platform build again
[haiku.git] / src / libs / posix_error_mapper / time.cpp
blobfee45a0aefdb8d9aa1618b71a57e7050bda29bd4
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 "posix_error_mapper.h"
12 WRAPPER_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));
20 WRAPPER_FUNCTION(int, clock_getcpuclockid,
21 (pid_t pid, clockid_t* _clockID),
22 return B_TO_POSITIVE_ERROR(sReal_clock_getcpuclockid(pid, _clockID));