This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC 1/7] y2038: Introduce struct __timespec64
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: <libc-alpha at sourceware dot org>, Paul Eggert <eggert at cs dot ucla dot edu>, Zack Weinberg <zackw at panix dot com>
- Date: Wed, 27 Mar 2019 13:41:36 +0000
- Subject: Re: [RFC 1/7] y2038: Introduce struct __timespec64
- References: <20190327085210.22019-1-lukma@denx.de> <20190327085210.22019-2-lukma@denx.de>
On Wed, 27 Mar 2019, Lukasz Majewski wrote:
> This type is a glibc's 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 between user
> code and Y2038-proof kernel syscalls (e.g. clock_gettime()).
Could you please give a detailed explanation of why this needs to go in an
installed header, as opposed to purely in a glibc-internal header? (All
bits/ headers should be installed headers; the set of installed headers is
determined by the "headers" settings in makefiles. Since you're not
actually including this from the public time.h in this patch, only the
internal one, there doesn't seem to be a reason here for either the naming
or installing the header.)
--
Joseph S. Myers
joseph@codesourcery.com