This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: time64 abi choices for glibc and musl


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]