X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Ftimex.h;h=08f4b0946651ab0c4242a5dd40db9f133b22c52a;hb=e201d82aac6241c28cf53b51444e954bb5ebe5df;hp=126239226c84dd3dee1cf3eff95692053beff7b0;hpb=fd9e01e92a5d665e5b6c3221cd67970038cf7a6c;p=musl diff --git a/include/sys/timex.h b/include/sys/timex.h index 12623922..08f4b094 100644 --- a/include/sys/timex.h +++ b/include/sys/timex.h @@ -5,6 +5,10 @@ extern "C" { #endif +#define __NEED_clockid_t + +#include + #include struct ntptimeval { @@ -46,6 +50,7 @@ struct timex { #define MOD_TIMECONST ADJ_TIMECONST #define MOD_CLKB ADJ_TICK #define MOD_CLKA ADJ_OFFSET_SINGLESHOT +#define MOD_TAI ADJ_TAI #define MOD_MICRO ADJ_MICRO #define MOD_NANO ADJ_NANO @@ -70,7 +75,7 @@ struct timex { #define STA_CLK 0x8000 #define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \ - STA_PPSERROR | STA_CLOCKERR) + STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) #define TIME_OK 0 #define TIME_INS 1 @@ -83,6 +88,7 @@ struct timex { #define MAXTC 6 int adjtimex(struct timex *); +int clock_adjtime(clockid_t, struct timex *); #ifdef __cplusplus }