diff options
author | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2017-09-08 00:42:15 +0200 |
---|---|---|
committer | Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr> | 2018-04-18 21:28:45 +0200 |
commit | b3bc67807767847630d382a0c129b0f21b08e06b (patch) | |
tree | 34b1b43b2982e371cde4d9fe41ef262b6540360a | |
parent | d49a602ce1336474cc4c3adf6d3881be50a19f8d (diff) | |
download | glibc-b3bc67807767847630d382a0c129b0f21b08e06b.tar.gz |
Y2038: add struct __timex64
-rw-r--r-- | include/time.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 5e601adbd4..5561ba42aa 100644 --- a/include/time.h +++ b/include/time.h @@ -26,6 +26,37 @@ libc_hidden_proto (__localtime64) flag variable that init-first.c sets when detecting support. */ extern int __y2038_kernel_support (void); +/* 64-bit time version of the current struct timex */ +struct __timex64 +{ + unsigned int modes; /* mode selector */ + __syscall_slong_t offset; /* time offset (usec) */ + __syscall_slong_t freq; /* frequency offset (scaled ppm) */ + __syscall_slong_t maxerror; /* maximum error (usec) */ + __syscall_slong_t esterror; /* estimated error (usec) */ + int status; /* clock command/status */ + __syscall_slong_t constant; /* pll time constant */ + __syscall_slong_t precision; /* clock precision (usec) (ro) */ + __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */ + struct __timeval64 time; /* (read only, except for ADJ_SETOFFSET) */ + __syscall_slong_t tick; /* (modified) usecs between clock ticks */ + __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */ + __syscall_slong_t jitter; /* pps jitter (us) (ro) */ + int shift; /* interval duration (s) (shift) (ro) */ + __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */ + __syscall_slong_t jitcnt; /* jitter limit exceeded (ro) */ + __syscall_slong_t calcnt; /* calibration intervals (ro) */ + __syscall_slong_t errcnt; /* calibration errors (ro) */ + __syscall_slong_t stbcnt; /* stability limit exceeded (ro) */ + + int tai; /* TAI offset (ro) */ + + /* ??? */ + int :32; int :32; int :32; int :32; + int :32; int :32; int :32; int :32; + int :32; int :32; int :32; +}; + extern __typeof (clock_getres) __clock_getres; extern __typeof (clock_gettime) __clock_gettime; libc_hidden_proto (__clock_gettime) |