Lukasz Majewski
7ce198e123
y2038: linux: Provide __clock_settime64 implementation
...
This patch provides new __clock_settime64 explicit 64 bit function for
setting the time. Moreover, a 32 bit version - __clock_settime - has been
refactored to internally use __clock_settime64.
The __clock_settime is now supposed to be used on systems still supporting
32 bit time (__TIMESIZE != 64) - hence the necessary conversion to 64 bit
struct timespec.
The new clock_settime64 syscall available from Linux 5.1+ has been used,
when applicable.
In this patch the internal padding (tv_pad) of struct __timespec64 is
left untouched (on systems with __WORDSIZE == 32) as Linux kernel ignores
upper 32 bits of tv_nsec.
Build tests:
- The code has been tested on x86_64/x86 (native compilation):
make PARALLELMFLAGS="-j8" && make xcheck PARALLELMFLAGS="-j8"
- The glibc has been build tested (make PARALLELMFLAGS="-j8") for
x86 (i386), x86_64-x32, and armv7
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
- Use of cross-test-ssh.sh for ARM (armv7):
make PARALLELMFLAGS="-j8" test-wrapper='./cross-test-ssh.sh root@192.168 .7.2' xcheck
Linux kernel, headers and minimal kernel version for glibc build test
matrix:
- Linux v5.1 (with clock_settime64) and glibc build with v5.1 as minimal
kernel version (--enable-kernel="5.1.0")
The __ASSUME_TIME64_SYSCALLS flag defined.
- Linux v5.1 and default minimal kernel version
The __ASSUME_TIME64_SYSCALLS not defined, but kernel supports
__clock_settime64 syscalls.
- Linux v4.19 (no clock_settime64 support) with default minimal kernel
version for contemporary glibc
This kernel doesn't support __clock_settime64 syscalls, so the fallback
to clock_settime is tested.
The above tests were performed with Y2038 redirection applied as well as
without (so the __TIMESIZE != 64 execution path is checked as well).
No regressions were observed.
* include/time.h (__clock_settime64):
Add __clock_settime alias according to __TIMESIZE define
* sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime):
Refactor this function to be used only on 32 bit machines as a wrapper
on __clock_settime64.
* sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64): Add
* sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64):
Use clock_settime64 kernel syscall (available from 5.1+ Linux)
2019-10-10 00:17:46 +02:00
..
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-09-07 02:43:31 -07:00
2019-10-07 20:00:38 +02:00
2019-10-01 14:54:46 -07:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-09-07 02:43:31 -07:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-09 17:34:38 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-09-07 02:43:31 -07:00
2019-10-07 20:00:38 +02:00
2019-10-07 20:00:38 +02:00
2019-10-01 14:54:46 -07:00
2019-09-07 02:43:31 -07:00
2019-09-17 17:09:24 -03:00
2019-10-07 20:00:38 +02:00
2019-09-07 02:43:31 -07:00
2019-02-25 13:19:19 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-10 00:17:46 +02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-17 17:09:24 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-17 17:09:24 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-12-18 16:45:10 -02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-17 17:09:26 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-25 22:06:34 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-18 22:57:46 +00:00
2019-05-14 22:55:51 +02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-17 17:09:24 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-11-23 16:50:29 -08:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-30 15:49:25 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-06-07 09:27:01 +02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00