[RFC] bb-wide errno optimization

Rich Felker dalias at aerifal.cx
Mon Jul 17 00:12:18 UTC 2006


On Sun, Jul 16, 2006 at 02:05:18PM -0400, Rob Landley wrote:
> Alright, I've un spam-filtered you...
> 
> > while this looks ugly and nonportable i think it's possible to do a
> > portable version of this that would work with any libc and prevent the
> > overhead of accessing errno through a function call or tls variable.
> 
> Your workaround is pure overhead for C libraries that don't need it (like 
> uClibc).  Just put the other workaround in platform.h as a glibc-specific 
> optimization.

How does uClibc avoid the overhead if thread support is enabled?

Rich




More information about the busybox mailing list