This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: Paul Eggert <eggert at cs dot ucla dot edu>, Alistair Francis <alistair23 at gmail dot com>, Arnd Bergmann <arnd at arndb dot de>, Alistair Francis <alistair dot francis at wdc dot com>, 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>, Florian Weimer <fw at deneb dot enyo dot de>, Zack Weinberg <zackw at panix dot com>
- Date: Mon, 30 Sep 2019 15:30:08 +0000
- Subject: Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- Ironport-sdr: rXAj32bZjtWoL65AeRLXkntwJuJT+gsgamf/ic9sD7+l7KAZ+rYkvYPRzMXyVwcd6KUG/S8lmq ubzzd0SYCwD/FJZl0uR3QCVBzcwtUKG4WVhj1FiJ4i48BEU9KtfPklSefkaao3BmjgEYmuwmc4 MErtrtDiZtiS+O+xJOjJjBBMZ328eBCSgesqb7KbGCCBlUxtE6znvut4yN7ZtQG95aUzmn3pTo /F6qUqh9iGFd3eY4l03HTI0v1Brho1W21N94kgxrcuDbH4/GIjkQ+xxGwGBI7soc52Bdk35kB9 3FE=
- Ironport-sdr: vldZt6QB8SLBQwcENmCqbVt97cBDk+8GTb+M+sts+wmW8ZBNs8mfiFfCoxRLnjRFnIf+tH8hfa vzppMTPWcWVdxCHsacJPAsi2BBSs+k8YCuyRHRRZEapmFlychh4dLWAUUASRDN26dHsZWMaeb1 MM1agv5sPTa6Qno3b2R1TE8b88hpO9/nrAWxjwmG7mLotDvvj8cXnxyRxq5YuJaqCrbLHEueHh 4ySROu0yxAwDMnfaHTGapjJrLfttYGAfGw3xFwZQeuB5gH9vh9ZL6I5pjC+BHCyn5xm7xwuZmv 0YE=
- References: <20190930133134.14771-1-lukma@denx.de>
On Mon, 30 Sep 2019, Lukasz Majewski wrote:
> Those functions allow easy conversion between Y2038 safe struct
> __timespec64 and other time related data structures (like struct timeval
> or struct timespec).
>
> * include/time.h (valid_timeval_to_timespec64): Add.
> * include/time.h (valid_timespec_to_timespec64): Likewise.
> * include/time.h (valid_timespec64_to_timespec): Likewise.
> * include/time.h (valid_timespec64_to_timeval): Likewise.
>
> ---
> Changes for v10:
> - Provide only conversion functions to work on "valid" time structures
> (no need to provide any excessive checks)
> - Return values instead of pointers
This patch is OK, please commit.
--
Joseph S. Myers
joseph@codesourcery.com