Commit 807d07b3 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

lib/cobalt: add clock_adjtime() syscall

parent 817b9b14
......@@ -39,6 +39,9 @@ COBALT_DECL(int, clock_gettime(clockid_t clock_id,
COBALT_DECL(int, clock_settime(clockid_t clock_id,
const struct timespec *tp));
COBALT_DECL(int, clock_adjtime(clockid_t clock_id,
struct timex *tx));
COBALT_DECL(int, clock_nanosleep(clockid_t clock_id,
int flags,
const struct timespec *rqtp,
......
......@@ -246,6 +246,21 @@ COBALT_IMPL(int, clock_settime, (clockid_t clock_id, const struct timespec *tp))
return 0;
}
/* @apitags{unrestricted} */
COBALT_IMPL(int, clock_adjtime, (clockid_t clock_id, struct timex *tx))
{
int ret;
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_adjtime, clock_id, tx);
if (ret < 0) {
errno = ret;
return -1;
}
return ret;
}
/**
* Sleep some amount of time.
*
......
......@@ -25,6 +25,7 @@
--wrap clock_getres
--wrap clock_gettime
--wrap clock_settime
--wrap clock_adjtime
--wrap clock_nanosleep
--wrap nanosleep
--wrap pthread_mutex_init
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment