[uClibc] PATCH: use __libc_gettimeofday instead of gettimeofday

Joakim Tjernlund joakim.tjernlund at lumentis.se
Mon Oct 18 07:40:27 UTC 2004


> Hello!
> 
> Would the attached patch be acceptable (maybe instead of 
> __libc_gettimeofday using __gettimeofday)
> 
> We have some issues, see
> 
> http://bugs.gentoo.org/show_bug.cgi?id=65892
> 
> I think, that the bug could happen on more places in uClibc, not only 
> in ssp.c.
> 
> 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)
> 
> Peter

Had a look at this patch and I think it is good. This should done to almost all
exported functions in uClibc.

Doing so, a program can define its own version of said function if it wants to.
Also, by "hiding"(not in place yet) the internal variant(__libc_xx) you will
remove the relocation of these functions within libc, making the lib
smaller and faster.

  Jocke 



More information about the uClibc mailing list