This is the mail archive of the
mailing list for the glibc project.
Re: time64 abi choices for glibc and musl
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Rich Felker <dalias at libc dot org>, libc-alpha at sourceware dot org
- Cc: musl at lists dot openwall dot com
- Date: Sat, 10 Aug 2019 13:15:34 -0700
- Subject: Re: time64 abi choices for glibc and musl
- References: <20190810175808.GA13205@brightrain.aerifal.cx>
Rich Felker wrote:
For struct stat, I think it's almost necessary to preserve the
existing layout and add new time64 members on the end, and to continue
filling in the time32 members.
This won't be reliable for applications that call 'stat', fiddle with the
timestamps in the resulting 'struct stat', and then pass the fiddled-with struct
to some other function. If they fiddle with the 64-bit timestamp the 32-bit copy
will become wrong, and vice versa.
There are similar issues for applications that create struct stat values by
hand, without calling a 'stat'-like function.