[PATCH] Add dn_skipname() from OpenBSD
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Sep 16 17:05:26 UTC 2009
On Wed, Sep 16, 2009 at 10:18:19AM -0400, Mike Frysinger wrote:
>On Wednesday 16 September 2009 07:53:36 Bernhard Reutner-Fischer wrote:
>libresolv is one giant pile of shit really (not specific to uClibc). it's
>something that clearly just grew up without real design thought behind it
>which means none of the interfaces are standardized and there's lots of behind
>the back symbols (including ones with leading underscores).
there is sockets and netdb.h mandated by susv4 which exposes a somewhat
sane interface (now, since gethostby{name,addr} and h_errno are gone).
>
>so i dont think there is much worth in trying to boil down libresolv to
>"standard only features" as there is no such thing. either you dont want
>libresolv at all (awesome!) and so it shouldnt be built (make that a config
>option?), or you do want libresolv which means you get all of the crap.
you can already turn off ipv6 or ipv4+6 or the whole networking (socket+ip).
Socket+ipv6 only would be nice but would mean touching the resolver --
which could need a rewrite anyway (TM).
>
>i guess you could make an argument about enabling only the perceived "common"
>symbols that people tend to use. so the Kconfig logic would be:
> [*] Enable libresolv
> [*] Enable uncommon symbols
Not too fancy for the pile it is, but the proper thing to do for a
rewrite, yep. Ok, so let's not hide that odd __dn_skipname (sic) behind
another config symbol for now, just put it in it's own file.
More information about the uClibc
mailing list