From f394e1796d23c2f05b11d9a6ed02f4ec32ee479d Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Fri, 14 Jun 2013 11:47:58 +0200 Subject: [PATCH] uClinux: Add another missing system call wrapper. Signed-off-by: Richard Cochran --- missing.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/missing.h b/missing.h index fbd57d4..3c2b9d8 100644 --- a/missing.h +++ b/missing.h @@ -57,6 +57,13 @@ static inline int clock_adjtime(clockid_t id, struct timex *tx) #else +static inline int clock_nanosleep(clockid_t clock_id, int flags, + const struct timespec *request, + struct timespec *remain) +{ + return syscall(__NR_clock_nanosleep, clock_id, flags, request, remain); +} + static inline int timerfd_create(int clockid, int flags) { return syscall(__NR_timerfd_create, clockid, flags);