Update ntp_gettime for Linux.
commiteb4157390cac6212921ef198353635e138dc0a00
authorUlrich Drepper <drepper@redhat.com>
Sun, 22 Nov 2009 19:07:04 +0000 (22 11:07 -0800)
committerUlrich Drepper <drepper@redhat.com>
Sun, 22 Nov 2009 19:07:04 +0000 (22 11:07 -0800)
treee0f2fd59ab88aa6e36db17432e705c8b3c6a3a51
parent89b432d7a5befb85048c97e881b2106e8df58e43
Update ntp_gettime for Linux.

The ntp_gettime implementation of NTP exports the tai field the kernel
now produces.  This requires an ABI change since the ntptimeval structure
changed.  Upstream kept the same name, there is nothing to do.  This
patch changes the ntptimeval structure but keeps the old ntp_gettime
definition.  A new ntp_gettimex function which is transparently invoked
through the old name is introduced.  This has the advantage that even
object files can remain compatible.  This wouldn't be the case if
symbol versioning would be used to overload the name ntp_gettime.
ChangeLog
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/Versions
sysdeps/unix/sysv/linux/ntp_gettime.c
sysdeps/unix/sysv/linux/ntp_gettimex.c [copied from sysdeps/unix/sysv/linux/ntp_gettime.c with 84% similarity]
sysdeps/unix/sysv/linux/sys/timex.h