Fifth draft of the Y2038 design document

Joseph Myers joseph@codesourcery.com
Fri Mar 10 00:30:00 GMT 2017


On Fri, 10 Mar 2017, Albert ARIBAUD wrote:

> #else
> # ifdef __REDIRECT
> extern int __REDIRECT(clock_gettime,(clockid_t __clock_id, struct timespec *__tp),clock_gettime64) __THROW;
> # else
> #  define clock_gettime clock_gettime64

No, both of those should reference the implementation-namespace 
__clock_gettime64, which should be exported at a public symbol version 
(and there shouldn't be a clock_gettime64 alias without clear evidence for 
the need for a clock_gettime64 API for using 64-bit times in an 
application built for 32-bit times by default).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list