]> git.ipfire.org Git - thirdparty/glibc.git/commit
y2038: inet: Convert inet deadline to support 64 bit time
authorLukasz Majewski <lukma@denx.de>
Mon, 16 Mar 2020 09:09:13 +0000 (10:09 +0100)
committerLukasz Majewski <lukma@denx.de>
Tue, 5 May 2020 16:45:14 +0000 (18:45 +0200)
commite008836c4afeeb81abe548b898fdf2db7d70eaff
tree62f27ff4a3283ff6d7cf8485e8884188997fb690
parent1959ed4b9e9f95c991abdf31b24fb8cdf98475e2
y2038: inet: Convert inet deadline to support 64 bit time

This change brings 64 bit time support to inet deadline related code for
architectures with __WORDSIZE == 32 && __TIMESIZE != 64.

It is also safe to replace struct timespec with struct __timespec64 in
deadline related structures as:

- The __deadline_to_ms () returns the number of miliseconds to deadline to
  be used with __poll (and hence it is a relative value).
- To calculate the deadline from timeval (which will be converted latter)
  the uintmax_t type is used (unsinged long long int).

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
inet/deadline.c
inet/net-internal.h