This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v8 1/3] y2038: Introduce internal for glibc struct __timespec64
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: Alistair Francis <alistair23 at gmail dot com>, Alistair Francis <alistair dot francis at wdc dot com>, Zack Weinberg <zackw at panix dot com>, Arnd Bergmann <arnd at arndb dot de>, GNU C Library <libc-alpha at sourceware dot org>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Florian Weimer <fweimer at redhat dot com>, Carlos O'Donell <carlos at redhat dot com>, Stepan Golosunov <stepan at golosunov dot pp dot ru>
- Date: Thu, 19 Sep 2019 20:14:42 +0000
- Subject: Re: [PATCH v8 1/3] y2038: Introduce internal for glibc struct __timespec64
- Ironport-sdr: YXpf03nirqbggHNpyhsdztmguq9ZbZSw+uPU8/B8nwoyl16ZQZn207hRnJxFXSXCadLWrbttFB mt4FDSHTgPSTOARCPbxMluBar8aUdU9QHhBa6X+qH0eCoPKWDe4GtoNbZnRk10PGnWZ9JzZpJn zGCWKi5UTEjm3yKydeaWgLQDP4ILgzMmzU/rg6XsYwnLHIijedN4Sqz6NmMrm2LYc5ZnBuonQr LanxB1ChYT2FONcDZ+KHwSNNEgW07fzHq+dapfKBSSGXK5BNnNpUYNm5ZvHqsO3z5KldR84XzG edE=
- Ironport-sdr: 86or/BAYSUoakAb+4c04c5Z6IfKK1tm0UpxO9lZexneCEWRg/OFt3ocQ5fP12VUjUhYIXtYUz0 rPXY2cZmtUQR4hb9Z/gpgNrC8YRJ19ab81TIedH99lZ9q5MKoUWFi7ekzvOHA3rDQnlRiFM8T8 oOtJPajahTmWkfpiF4jHAoUYFXktWArbkG82IAiHPF8FUgl58CHYJoSxsF1YuELsOrOn1jOvP0 jLlK/MyYVCuyF1eO4e+mdEaqZDSTlWBcffOY/n7WVmf295b3477ZZyOXTF+UAS6+t10HiQkRM+ 9Ns=
- References: <20190918211603.8444-1-lukma@denx.de> <20190918211603.8444-2-lukma@denx.de>
On Wed, 18 Sep 2019, Lukasz Majewski wrote:
> This type is a glibc's "internal" type similar to struct timespec but
> whose tv_sec field is a __time64_t rather than a time_t, which makes it
> Y2038-proof and usable to pass syscalls between user code and Y2038-proof
> kernel.
>
> To support passing this structure to the kernel - the tv_pad, 32 bit int,
> has been introduced. The placement of it depends on endianness of the SoC.
>
> Tested on x86_64 and ARM.
>
> * include/time.h: Add struct __timespec64 definition
This patch is OK.
--
Joseph S. Myers
joseph@codesourcery.com