[v2,0/5] y2038: Replace __clock_gettime with __clock_gettime64

Message ID 20200326080641.10193-1-lukma@denx.de
Headers
Series y2038: Replace __clock_gettime with __clock_gettime64 |

Message

Lukasz Majewski March 26, 2020, 8:06 a.m. UTC
  This patch series starts the conversion of __clock_gettime calls to
__clock_gettime64 as the latter supports 64 bit time on archs with 
__WORDSIZE == 32 and __TIMESIZE != 64.

On purpose the nptl and pthreads have been omitted, as for those separate patch
sets will be prepared.
It is an open question if sunrpc shall be converted or not.

This patch series also provides __clock_gettime64 wrapper for HURD to allow
conversion of generic in-glibc code (as HURD uses them - like e.g. pthreads).

Special care had to be taken for s390 as it has its own definition of utmp.h
and hence requires using TIMESPEC_TO_TIMEVAL macro.

Lukasz Majewski (5):
  y2038: Export __clock_gettime64 to be usable in other libraries
  y2038: hurd: Provide __clock_gettime64 function
  y2038: inet: Convert inet deadline to support 64 bit time
  y2038: nscd: Modify nscd_helper to use __clock_gettime64
  y2038: Replace __clock_gettime with __clock_gettime64

 benchtests/bench-timing.h                       |  2 +-
 include/random-bits.h                           |  4 ++--
 inet/deadline.c                                 |  4 ++--
 inet/net-internal.h                             |  5 +++--
 login/logout.c                                  |  4 ++--
 login/logwtmp.c                                 |  5 +++--
 nis/nis_call.c                                  |  6 +++---
 nscd/nscd_helper.c                              | 17 +++++++++--------
 sysdeps/generic/hp-timing.h                     |  4 ++--
 sysdeps/generic/memusage.h                      |  4 ++--
 sysdeps/mach/clock_gettime.c                    | 14 ++++++++++++++
 .../unix/sysv/linux/alpha/osf_gettimeofday.c    |  4 ++--
 sysdeps/unix/sysv/linux/clock.c                 |  7 ++-----
 time/Versions                                   |  1 +
 14 files changed, 48 insertions(+), 33 deletions(-)
  

Comments

Lukasz Majewski April 6, 2020, 3:16 p.m. UTC | #1
Dear Community,

> This patch series starts the conversion of __clock_gettime calls to
> __clock_gettime64 as the latter supports 64 bit time on archs with 
> __WORDSIZE == 32 and __TIMESIZE != 64.
> 
> On purpose the nptl and pthreads have been omitted, as for those
> separate patch sets will be prepared.
> It is an open question if sunrpc shall be converted or not.
> 
> This patch series also provides __clock_gettime64 wrapper for HURD to
> allow conversion of generic in-glibc code (as HURD uses them - like
> e.g. pthreads).
> 
> Special care had to be taken for s390 as it has its own definition of
> utmp.h and hence requires using TIMESPEC_TO_TIMEVAL macro.
> 
> Lukasz Majewski (5):
>   y2038: Export __clock_gettime64 to be usable in other libraries
>   y2038: hurd: Provide __clock_gettime64 function
>   y2038: inet: Convert inet deadline to support 64 bit time
>   y2038: nscd: Modify nscd_helper to use __clock_gettime64
>   y2038: Replace __clock_gettime with __clock_gettime64

Are there any more comments for this patch set?

> 
>  benchtests/bench-timing.h                       |  2 +-
>  include/random-bits.h                           |  4 ++--
>  inet/deadline.c                                 |  4 ++--
>  inet/net-internal.h                             |  5 +++--
>  login/logout.c                                  |  4 ++--
>  login/logwtmp.c                                 |  5 +++--
>  nis/nis_call.c                                  |  6 +++---
>  nscd/nscd_helper.c                              | 17
> +++++++++-------- sysdeps/generic/hp-timing.h                     |
> 4 ++-- sysdeps/generic/memusage.h                      |  4 ++--
>  sysdeps/mach/clock_gettime.c                    | 14 ++++++++++++++
>  .../unix/sysv/linux/alpha/osf_gettimeofday.c    |  4 ++--
>  sysdeps/unix/sysv/linux/clock.c                 |  7 ++-----
>  time/Versions                                   |  1 +
>  14 files changed, 48 insertions(+), 33 deletions(-)
> 


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de