This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [[PATCH RFC 2] 26/63] Y2038: add struct __itimerspec64
On Wed, 18 Apr 2018, Albert ARIBAUD (3ADEV) wrote:
> ---
> time/bits/types/struct_itimerspec.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/time/bits/types/struct_itimerspec.h b/time/bits/types/struct_itimerspec.h
> index 17cc1ac86d..1f8fff439f 100644
> --- a/time/bits/types/struct_itimerspec.h
> +++ b/time/bits/types/struct_itimerspec.h
> @@ -11,4 +11,11 @@ struct itimerspec
> struct timespec it_value;
> };
>
> +/* 64-bit interval timer spec */
> +struct __itimerspec64
> +{
> + struct __timespec64 it_interval;
> + struct __timespec64 it_value;
> +};
No, bits/types/* are for exactly one type per header. You need a separate
bits/types/struct___itimerspec64.h to define struct __itimerspec64 (and
likewise for any other such type, and with Makefiles modified to install
any new such headers).
--
Joseph S. Myers
joseph@codesourcery.com