glibc/sysdeps
Lukasz Majewski 4c4fc04826 y2038: linux: Provide __ntp_gettimex64 implementation
This patch provides new __ntp_gettimex64 explicit 64 bit function for getting
time parameters via NTP interface.

The call to __adjtimex in __ntp_gettime64 function has been replaced with
direct call to __clock_adjtime64 syscall, to simplify the code.

Moreover, a 32 bit version - __ntp_gettimex has been refactored to internally
use __ntp_gettimex64.

The __ntp_gettimex is now supposed to be used on systems still supporting 32
bit time (__TIMESIZE != 64) - hence the necessary conversions between struct
ntptimeval and 64 bit struct __ntptimeval64.

Build tests:
./src/scripts/build-many-glibcs.py glibcs

Run-time tests:
- Run specific tests on ARM/x86 32bit systems (qemu):
  https://github.com/lmajewski/meta-y2038 and run tests:
  https://github.com/lmajewski/y2038-tests/commits/master

Above tests were performed with Y2038 redirection applied as well as without to
test the proper usage of both __ntp_gettimex64 and __ntp_gettimex.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2020-05-20 01:09:16 +02:00
..
aarch64 aarch64: fix strcpy and strnlen for big-endian [BZ #25824] 2020-05-15 12:15:56 +01:00
alpha
arm arm: XFAIL string/tst-memmove-overflow due to bug 25620 2020-05-13 16:48:26 +02:00
csky semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
generic elf: Implement __libc_early_init 2020-04-24 22:32:09 +02:00
gnu
hppa semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
htl
hurd
i386 x86: Move CET control to _dl_x86_feature_control [BZ #25887] 2020-05-18 06:15:02 -07:00
ia64 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
ieee754 float128: use builtin_signbitf128 always 2020-05-04 13:18:45 -05:00
m68k
mach Remove NO_CTORS_DTORS_SECTIONS macro 2020-05-18 15:39:34 +02:00
microblaze semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
mips Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
nios2 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
nptl
posix
powerpc powerpc: Optimized rawmemchr for POWER9 2020-05-18 17:08:54 -05:00
pthread
riscv semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
s390 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sh semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sparc semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
unix y2038: linux: Provide __ntp_gettimex64 implementation 2020-05-20 01:09:16 +02:00
wordsize-32
wordsize-64
x86 x86: Add --enable-cet=permissive 2020-05-18 08:38:53 -07:00
x86_64 Linux: Remove remnants of the getcpu cache 2020-05-16 15:47:51 +02:00