Re: RFD: x32 ABI system call numbers

From: H. Peter Anvin
Date: Wed Aug 31 2011 - 16:59:42 EST


On 08/31/2011 01:55 PM, Arnd Bergmann wrote:
>
> But isn't this mostly a glibc thing then? The definition of time_t that
> is used by applications comes from bits/typesizes.h, not from the
> kernel's linux/types.h. If we use 64 bit time_t values internally
> in the kernel and truncate them to 32 bits on the user interface,
> there is no visible difference between signed and unsigned values
> for data passed from kernel to user when it's interpreted as
> signed int anyway.
>
> For the rarer case of user space passing a 32 bit time_t into the
> kernel (e.g. utimensat), there is of course a difference.
>

Yes, exactly. It should be done in a coordinated fashion.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/