This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] y2038: Introduce __ASSUME_TIME64_SYSCALLS define
- From: Stepan Golosunov <stepan at golosunov dot pp dot ru>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Lukasz Majewski <lukma at denx dot de>, libc-alpha at sourceware dot org, Arnd Bergmann <arnd at arndb dot de>, Paul Eggert <eggert at cs dot ucla dot edu>
- Date: Thu, 9 May 2019 20:18:49 +0400
- Subject: Re: [PATCH] y2038: Introduce __ASSUME_TIME64_SYSCALLS define
- References: <20190414220841.20243-1-lukma@denx.de> <20190508155608.24791-1-lukma@denx.de> <alpine.DEB.2.21.1905091554370.2272@digraph.polyomino.org.uk>
09.05.2019 в 15:58:38 +0000 Joseph Myers написал:
> On Wed, 8 May 2019, Lukasz Majewski wrote:
> > + Linux kernel, as of version 5.1, provides following set of syscalls,
> > + which accept data based on struct timespec and timeval with 64 bit
> > + tv_sec:
>
> Do any of these actually use timeval? I thought the idea was that the new
> syscalls for 64-bit time would all use timespec, with it being the
> responsibility of libc to handle conversions to and from timeval as needed
> (e.g. for gettimeofday with _TIME_BITS=64).
clock_adjtime uses __kernel_timex_timeval, as is explained in
https://lore.kernel.org/lkml/CAK8P3a0OBBEwU044jbe-YK2CmCnpNpUSiCA9uRo-8EwtcUva6g@mail.gmail.com/