implement settimeofday in terms of clock_settime, not old syscall
[musl] / src / linux / clock_adjtime.c
1 #include <sys/timex.h>
2 #include <time.h>
3 #include "syscall.h"
4
5 int clock_adjtime (clockid_t clock_id, struct timex *utx)
6 {
7         if (clock_id==CLOCK_REALTIME) return syscall(SYS_adjtimex, utx);
8         return syscall(SYS_clock_adjtime, clock_id, utx);
9 }