[RFC] bb-wide errno optimization
Rob Landley
rob at landley.net
Sun Jul 16 18:36:08 PDT 2006
On Sunday 16 July 2006 8:12 pm, Rich Felker wrote:
> 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?
Then have the #ifdef check for uClibc with thread support. In platform.h.
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list