]> git.ipfire.org Git - thirdparty/glibc.git/commit
y2038: Provide conversion helpers for struct __timex64
authorLukasz Majewski <lukma@denx.de>
Tue, 21 Apr 2020 17:12:17 +0000 (19:12 +0200)
committerLukasz Majewski <lukma@denx.de>
Tue, 5 May 2020 17:36:25 +0000 (19:36 +0200)
commit898f3793164c0e811b28a37827f4bedce334066f
tree2a95e6287af7c80db168da3e7f22f73da1e5e98e
parentdbf8178fdc1cc1c884efd2f5b55703da5adfb051
y2038: Provide conversion helpers for struct __timex64

Those functions allow easy conversion between Y2038 safe, glibc internal
struct __timex64 and struct timex.

Those functions are put in Linux specific sys/timex.h file, as putting
them into glibc's local include/time.h would cause build break on HURD as
it doesn't support struct timex related syscalls.

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

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/include/sys/timex.h