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: [RFC v4 07/24] time: Deprecate struct timezone members


Joseph Myers wrote:
it might mean that these two functions are exceptions to the
general rule of functions for 32-bit time being thin wrappers round their
64-bit counterparts.

If I'm understanding you correctly, you're suggesting that the existing-ABI get/settimeofday calls behave as before (albeit with __attribute_deprecated__ warnings at compile-time), whereas the new-ABI gettimeofday clears *TZ if TZ is nonnull and the new-ABI settimeofday ignores TZ. That way, the one or two ancient apps that rely on this stuff will still work if compiled in 32-bit time_t mode. This sounds like a good way to go forward.

It might also make sense for the new-ABI gettimeofday to simply ignore its TZ argument, as that would be easier to document and explain (plus a bit faster for the typical gettimeofday case).


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