[uClibc] PATCH: use __libc_gettimeofday instead of gettimeofday

Joakim Tjernlund joakim.tjernlund at lumentis.se
Wed Oct 20 07:54:42 UTC 2004


> On Wed, 20 Oct 2004, Joakim Tjernlund wrote:
> 
> > > > 
> > > > > If it would be acceptable, I would do the same for
> > > > > strcpy,strncat,strlen,strncpy,sigaction,kill,sigprocmask
> > > > > (see last proposed patch in the bug report)
> > > > 
> > > > Does the propolice patch really modify all of these libc
> > > > internals?
> > > 
> > > The propolice patch does not modify them, it happens only if the user 
> > > redefines them (see bug report)
> > > 
> > > Peter
> > 
> > I think you also need to "hide" these internal functions, otherwise a
> > user could just as well redefine the internal functions.
> 
> an #ifdef _LIBC would be sufficient?

No, uClibc does not support attribute_hidden, INTUSE, INDDEF etc. as glibc
does(see include libc_symbols.h in glibc).

That said, I am not sure iff these symbols really are hidden in glibc. That
needs to be verified first. However, if you really want to make it impossible
for a user to redefine a non static symbol, you must "hide" the symbol somehow.

 Jocke




More information about the uClibc mailing list