Stafford Horne
6e8a0aac2f
time: Fix overflow itimer tests on 32-bit systems
...
On the port of OpenRISC I am working on and it appears the rv32 port
we have sets __TIMESIZE == 64 && __WORDSIZE == 32. This causes the
size of time_t to be 8 bytes, but the tv_sec in the kernel is still 32-bit
causing truncation.
The truncations are unavoidable on these systems so skip the
testing/failures by guarding with __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64.
Also, futher in the tests and in other parts of code checking for time_t
overflow does not work on 32-bit systems when time_t is 64-bit. As
suggested by Adhemerval, update the in_time_t_range function to assume
32-bits by using int32_t.
This also brings in the header for stdint.h so we can update other
usages of __int32_t to int32_t as suggested by Adhemerval.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-08-15 07:09:58 +09:00
..
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2016-12-09 08:18:27 +01:00
2018-11-15 22:59:33 +01:00
2021-03-25 12:33:02 +01:00
2021-05-17 20:55:21 +00:00
2021-03-25 12:33:02 +01:00
2021-03-25 12:33:02 +01:00
2021-03-25 12:33:02 +01:00
2021-01-02 12:17:34 -08:00
2017-02-16 17:33:18 -05:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-06-28 09:51:01 +02:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-05-17 20:55:21 +00:00
2019-08-21 08:26:36 -04:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2019-09-04 14:39:38 +02:00
2021-06-15 10:42:11 -03:00
2021-06-22 12:09:52 -03:00
2021-06-15 10:42:11 -03:00
2021-03-08 22:41:34 +01:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-02-16 20:37:27 +01:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-04-15 11:32:38 -03:00
2021-06-15 10:42:11 -03:00
2021-08-15 07:09:58 +09:00
2018-10-23 11:25:05 +02:00
2021-06-15 10:42:11 -03:00
2021-02-16 20:41:45 +01:00
2017-02-16 17:33:18 -05:00
2021-06-15 10:42:11 -03:00
2021-03-08 22:41:41 +01:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2017-02-25 09:59:46 -05:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-04-15 11:32:39 -03:00
2021-06-15 10:42:11 -03:00
2021-04-15 11:32:40 -03:00
2021-06-15 10:42:11 -03:00
2021-05-17 20:55:21 +00:00
2021-01-02 12:17:34 -08:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-22 12:09:52 -03:00
2021-01-02 12:17:34 -08:00
2021-05-17 20:55:21 +00:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00