[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#558314: eglibc: Add support for NTP API 4



On Fri, Nov 27, 2009 at 08:52:35PM +0100, Kurt Roeckx wrote:
> Source: eglibc
> Version: 2.10.2-2
> Severity: wishlist
> 
> Hi,
Hi,

> Could you please provide support for NTP API 4?

This has been added upstream to the future GLIBC 2.12.

> The changes in version 4 is the addition of MOD_TAI (ADJ_TAI)
> and a tai member in the ntptimeval struct.
> 
> The kernel already supports this since 2.6.26 when ADJ_TAI
> got added.  The current /usr/include/sys/timex.h already
> has ADJ_TAI and a tai member in struct timex.  The
> struct ntptimeval however didn't get changed, since this
> is not part of the kernel but implemented only in libc.
> 
> >From ntpd's point of view those changes need to be made:
> - add "long int tai;" to struct ntptimeval.  This is a long in
>   all known versions I know, but the kernel has an int in
>   the struct timex (for compatibility reasons with the old
>   struct?).
> - #define NTP_API 4
> - Have a MOD_TAI define
> - ntp_gettime() should fill in the tai member of struct
>   ntptimeval.

Changing the struct ntptimeval means changing the ABI. This has been
done upstream using symbol versioning, using GLIBC_2.12. I am currently
not sure we can already use this version without breaking the binary
compatibility with other distributions.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: