Files
semi-libc/src/linux/adjtimex.c
T
Rich Felker 107d68ad17 refactor adjtimex in terms of clock_adjtime
this sets the stage for having the conversion logic for 64-bit time_t
all in one file, and as a bonus makes clock_adjtime for CLOCK_REALTIME
work even on kernels too old to have the clock_adjtime syscall.
2019-07-20 17:02:49 -04:00

8 lines
120 B
C

#include <sys/timex.h>
#include <time.h>
int adjtimex(struct timex *tx)
{
return clock_adjtime(CLOCK_REALTIME, tx);
}