Newlib resolver [was Re: minires-0.95 - a new package ready for review]
J. Johnston
jjohnstn@redhat.com
Sun Jun 15 23:57:00 GMT 2003
Nicholas Wourms wrote:
> cgf@redhat.com wrote:
>
>> On Thu, Jun 12, 2003 at 11:49:28AM -0400, Pierre A. Humblet wrote:
>>
>>> Christopher Faylor wrote:
>>>
>>>> On Wed, Jun 11, 2003 at 10:33:36PM -0400, Nicholas Wourms wrote:
>>>>
>>>>> Now as to whether it should be spun as a separate dll/import library
>>>>> (-lresolv), is another matter, entirely. Of course, feel free to
>>>>> disagree, as I could be wrong ;-).
>>>>
>>>>
>>>> I think it belongs in newlib, too. Anyone willing to take a shot at
>>>> getting it into newlib?
>>>
>>>
>>> Is newlib the right place? minires uses the Windows API to find the
>>> dns servers and the domain name. Is there a POSIX way to get those?
>>> If so, it could be implemented in Cygwin. In the long run the lookups
>>> should use the Windows resolver (on systems >= Win2000). BTW, that's
>>> why it's 0.95 and not 1.00
>>
>>
>>
>> I was thinking that putting this in newlib would potentially provide a
>> base for other systems that needed similar functionality. I'm not aware
>> of any prohibition against using the Windows API in newlib.
>>
>> I'm not against putting this into a winsup/resolver directory either. I
>> just thought it would be more universally useful in newlib.
>>
>
> (I moved this to the newlib list as it seemed more appropriate to
> discuss it there.)
>
> How do you guys over at newlib feel about this? The basic idea is to
> take Pierre's code from below and integrate it into newlib, providing a
> good basis for a newlib libresolve implimentation which isn't hindered
> by the GPL. Since the source is BSD licensed, it should be ok in terms
> of the newlib/cygwin licensing scheme.
>
> The code being discussed can be downloaded from here:
> http://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.1/minires-0.95-src.tar.gz
>
>
> Of course, it should be modified a little to best fit into newlib, but
> think of it as a proof of concept for now.
>
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.
-- Jeff J.
More information about the Newlib
mailing list