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: [PATCH] Add hidden definition for __clock_gettime


On Thu, May 23, 2013 at 12:16:51PM -0700, Roland McGrath wrote:
> I don't understand why we have __clock_gettime at all given the status quo.
> That is, both __clock_gettime and clock_gettime are strong definitions, so
> there is no benefit whatsoever in using the __ name rather than the public
> name.  If there are calls to __clock_gettime from the implementations of
> functions outside the name space that includes clock_gettime, then things
> are already wrong.  So first we should resolve that: either we need
> __clock_gettime as the strong definition and clock_gettime as only a weak
> alias, or we don't need __clock_gettime at all.

time(), clock(), and several other functions outside the namespace for
clock_gettime should probably be calling it. Whether they do, I'm not
sure, but the namespace issue is real.

Rich


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