[PATCH 15/16] linux: Add {f}stat{at} y2038 support

Joseph Myers joseph@codesourcery.com
Thu Jul 23 20:55:23 GMT 2020


On Thu, 23 Jul 2020, Adhemerval Zanella via Libc-alpha wrote:

> A new struct __stat{64}_t64 type is added with the required
> __timespec64 time definition.  Both non-LFS and LFS support were
> done with an extra __NR_statx call plus a conversion to the new
> __stat{64}_t64 type.  The statx call is done only for architectures
> with support for 32-bit time_t ABI.

The combination of 64-bit times with 32-bit offsets is not supposed to be 
supported (no existing glibc configuration supports such a combination); 
_TIME_BITS=64 without _FILE_OFFSET_BITS=64 should be an error.  Thus, the 
__stat_t64 type and functions shouldn't be present.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list