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

Lukasz Majewski lukma@denx.de
Mon Apr 6 15:16:53 GMT 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200406/f5b3bc2c/attachment.sig>


More information about the Libc-alpha mailing list