This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v9] y2038: Introduce struct __timespec64 - new internal glibc type
- 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>, Florian Weimer <fw at deneb dot enyo dot de>, 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, 26 Sep 2019 16:01:10 +0000
- Subject: Re: [PATCH v9] y2038: Introduce struct __timespec64 - new internal glibc type
- Ironport-sdr: YtckdC/7YU33T4F4DTAmV7HWsoSDPPZc5ktIAILUQN4tRnY+F4hoe0uIH1FU48DjxV8uhduQIA 2EZI16XfiVItxky6HSP7kVvgAyKzSMoFOUYd6SqIfqC8b5T1bNU4b5fYtKVgrVuoVI1vELvw0L hMEjDDT8/YdLpMvafdHlFhzjtXwW/Yo2MwdHuFT4dTwCO57K+k3i9RkQOpuSh6Z7np/6iFkTmf 1r/WxVKrvPDuACMRlKxyln+XBoGIt0SFeRH1eYSY+kdhOGiWlvxPWuGth2Md4lSrxbR4Rt9Aut Ufs=
- Ironport-sdr: IL8yf5mmbTqHZ+aAK8Zc/xO88CR2caA3CQCpO69iQEBWjM9C87xBSg4A0TKTqruhRj/0LePdqA /fujr3Q4qV2YhWduvgHU26O6L7OpW6Vaw6QDO+8JIfs14JXVcjjbH7WcVtT9KRdy6jEDdwN5mD frwI9UlKcvILlRgxcLDv0TuemrnSlylBa8zizXaXaznbsvEQatcjy/E33xZ/1Lz9mcj8fdBvcR 0q8pTV8Ta5KYZMERN8Rt2BPA0tIL8Pt6w6XeeYBxmKvLk0VC6keMlHUl2nlr8LlxziMm6Putpw QQY=
- References: <20190926133223.5814-1-lukma@denx.de>
On Thu, 26 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 unnamed 32 bit
> padding bit-field has been introduced. The placement of it depends on
> the endianness of the SoC.
>
> Tested on x86_64 and ARM.
>
> * include/time.h: Add struct __timespec64 definition
This patch is OK, please commit.
--
Joseph S. Myers
joseph@codesourcery.com