[PATCH] provide y2038 safe socket constants
Vineet Gupta
Vineet.Gupta1@synopsys.com
Tue Mar 31 21:00:22 GMT 2020
On 3/31/20 1:45 PM, Joseph Myers wrote:
> 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.
Something like below ?
-#if __TIMESIZE == 64 && __WORDSIZE == 32
+#if TIMESIZE == 64 && (__WORDSIZE == 32 \
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
Also is it ok to littler the code (multiple times, this patch and else where) with
this or should we define a new __32BIT_ARCH_NOT_X32 or some such ?
More information about the Libc-alpha
mailing list