Newlib resolver [was Re: minires-0.95 - a new package ready for review]
J. Johnston
jjohnstn@redhat.com
Fri Jun 20 00:35:00 GMT 2003
Corinna Vinschen wrote:
> On Thu, Jun 12, 2003 at 07:26:27PM -0400, J. Johnston wrote:
>
>>From the sounds of it, it belongs in winsup because it uses Windows APIs.
>>Corinna
>>has already removed the newlib/libc/sys/cygwin directory from newlib.
>
>
> That's just a minor part of the story. It uses *one* function from the
> Windows API which is used if /etc/resolve.conf is not available.
> All the rest of minires is using pure socket functionality and therefore
> just a tiny part of the lib is actually Windows dependent. Even on Windows,
> a resolve.conf overwrites using the Windows API.
>
> So this has nothing to do with Cygwin in the first place. Minires
> would add a resolver lib to newlib which is 99% platform independent
> and the 1% Windows API could be appropriately ifdef'd out.
>
> Does that sound different now?
>
Yes. It would have to be configuration dependent so it is not built for the
majority of embedded platforms that won't have socket support. It should
also have inlined or external documentation.
-- Jeff J.
More information about the Newlib
mailing list