]> granicus.if.org Git - strace/commitdiff
Introduce kernel_timex64_t
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 10 May 2019 22:27:59 +0000 (22:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 10 May 2019 22:27:59 +0000 (22:27 +0000)
This is going to be used to implement clock_adjtime64 parser.

* kernel_timex.h (kernel_timex64_t): New type.

kernel_timex.h

index e8f799c835357c54f0550088235c767b34260764..ea77e1da203861778b92260c4fd0402a306215ec 100644 (file)
@@ -8,6 +8,36 @@
 #ifndef STRACE_KERNEL_TIMEX_H
 # define STRACE_KERNEL_TIMEX_H
 
+typedef struct {
+       unsigned int modes;
+       int pad0;
+       long long offset;
+       long long freq;
+       long long maxerror;
+       long long esterror;
+       int status;
+       int pad1;
+       long long constant;
+       long long precision;
+       long long tolerance;
+       struct {
+               long long tv_sec;
+               long long tv_usec;
+       } time;
+       long long tick;
+       long long ppsfreq;
+       long long jitter;
+       int shift;
+       int pad2;
+       long long stabil;
+       long long jitcnt;
+       long long calcnt;
+       long long errcnt;
+       long long stbcnt;
+       int tai;
+       int pad3[11];
+} kernel_timex64_t;
+
 # if HAVE_ARCH_TIME32_SYSCALLS
 
 typedef struct {