about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2017-09-08 00:42:12 +0200
committerAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-10-24 12:53:27 +0200
commitf4f353b27f23d54bfb2e6481ef9e985d57300d7f (patch)
treea00b9df70e727e591e21f8ebb8e3e104949b2655
parent00b105507aa2351f56eba15eaac5a065a9138fd3 (diff)
downloadglibc-f4f353b27f23d54bfb2e6481ef9e985d57300d7f.tar.gz
glibc-f4f353b27f23d54bfb2e6481ef9e985d57300d7f.tar.xz
glibc-f4f353b27f23d54bfb2e6481ef9e985d57300d7f.zip
Y2038: add struct __ntp_timeval64
-rw-r--r--sysdeps/unix/sysv/linux/sys/timex.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/timex.h b/sysdeps/unix/sysv/linux/sys/timex.h
index 0d652c8aeb..fd459297ab 100644
--- a/sysdeps/unix/sysv/linux/sys/timex.h
+++ b/sysdeps/unix/sysv/linux/sys/timex.h
@@ -40,6 +40,19 @@ struct ntptimeval
   long int __glibc_reserved4;
 };
 
+struct __ntptimeval64
+{
+  struct __timeval64 time;	/* current time (ro) */
+  long int maxerror;	/* maximum error (us) (ro) */
+  long int esterror;	/* estimated error (us) (ro) */
+  long int tai;		/* TAI offset (ro) */
+
+  long int __glibc_reserved1;
+  long int __glibc_reserved2;
+  long int __glibc_reserved3;
+  long int __glibc_reserved4;
+};
+
 /* Clock states (time_state) */
 #define TIME_OK		0	/* clock synchronized, no leap second */
 #define TIME_INS	1	/* insert leap second */