This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add hidden definition for __clock_gettime
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 23 May 2013 12:16:51 -0700 (PDT)
- Subject: Re: [PATCH] Add hidden definition for __clock_gettime
- References: <20130521145455 dot GL8927 at spoyarek dot pnq dot redhat dot com>
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.
Thanks,
Roland