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: Fifth draft of the Y2038 design document


On Fri, 10 Mar 2017, Albert ARIBAUD wrote:

> > 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).
> 
> So this should be ok?
> 
> #ifndef __USE_TIME_BITS64
> extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
> #else
> # ifdef __REDIRECT
> extern int __REDIRECT(clock_gettime,(clockid_t __clock_id, struct timespec *__tp),__clock_gettime64) __THROW;
> # else
> #  define clock_gettime __clock_gettime64
> # endif
> #endif

Subject to formatting issues (space before '(', after comma), yes.

-- 
Joseph S. Myers
joseph@codesourcery.com


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