[PATCH v10] y2038: Provide conversion helpers for struct __timespec64
Joseph Myers
joseph@codesourcery.com
Mon Sep 30 15:30:00 GMT 2019
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
More information about the Libc-alpha
mailing list