[PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function
Joseph Myers
joseph@codesourcery.com
Fri Sep 6 21:28:00 GMT 2019
On Fri, 6 Sep 2019, Alistair Francis wrote:
> Which I can fix with this diff:
This diff is not the right way to fix this build failure.
One of the design principles in the Y2038 support is that is __TIMESIZE ==
64, the time functions *aren't* trivial wrappers of time64 functions;
rather, the time64 function definitions are remapped (via macros) so they
define the function name with no "64". For each case where there is a
pair of functions (for different time_t types) in the __TIMESIZE == 32
case, there should just be the one function when __TIMESIZE == 64.
This ensures that the Y2038 changes don't add any overhead at all in the
glibc binaries on existing platforms with __TIMESIZE == 64.
You should look at exactly what the types in question are, that are being
reported as conflicting in your build (probably by looking at preprocessed
source). __timespec64 and timespec are supposed to be the same type (via
#define) when __TIMESIZE == 64, to avoid such incompatibilities.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list