[PATCH 4/5] y2038: linux: Provide __timer_gettime64 implementation
Lukasz Majewski
lukma@denx.de
Wed Dec 11 22:26:00 GMT 2019
Hi Andreas,
> On Nov 11 2019, Lukasz Majewski wrote:
>
> > diff --git a/include/time.h b/include/time.h
> > index 52ee213669..8b9a4b7a60 100644
> > --- a/include/time.h
> > +++ b/include/time.h
> > @@ -179,6 +179,13 @@ extern int __futimens64 (int fd, const struct
> > __timespec64 tsp[2]); libc_hidden_proto (__futimens64);
> > #endif
> >
> > +#if __TIMESIZE == 64
> > +# define __timer_gettime64 __timer_gettime
> > +#else
> > +extern int __timer_gettime64 (timer_t timerid, struct
> > __itimerspec64 *value); +libc_hidden_proto (__timer_gettime64);
>
> This libc_hidden_proto is wrong since timer_gettime64 lives in librt.
>
I may be not so experienced glibc developer, but isn't the
libc_hidden_proto macro used to bypass plt access to this function when
it is used internally in glibc?
For librt there is the same symbol (and stub function defined) for
backward compatibility.
Or am I missing something important? Thanks in advance for the
explanation.
> Andreas.
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20191211/eead156d/attachment.sig>
More information about the Libc-alpha
mailing list