[PATCH] provide y2038 safe socket constants
Joseph Myers
joseph@codesourcery.com
Tue Mar 31 20:45:22 GMT 2020
On Tue, 31 Mar 2020, Florian Weimer wrote:
> What about the parallel changes to the sysdeps overrides? I would
> expect changes for hppa, mips, powerpc. (Not sure about the alpha
> situation.)
This fix is only about the case where the *default* ABI in glibc requires
these different values.
The header will need further changes (to use a conditional not based on
__TIMESIZE) when _TIME_BITS=64 is supported on platforms that currently
have 32-bit time_t. That's the point at which changes for other
architectures are needed - once we have an appropriate conditional for
"the current compilation uses 64-bit time but kernel long is 32-bit" (or
something like that).
I'm concerned the present patch is wrong for x32, however; that has
__TIMESIZE == 64 && __WORDSIZE == 32 but should use the old values; the
patch should be using __SYSCALL_WORDSIZE when available in place of
__WORDSIZE.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list