[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: getaddrinfo

From: Simon Josefsson
Subject: [Bug-gnulib] Re: getaddrinfo
Date: Mon, 06 Sep 2004 22:28:06 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Simon Josefsson wrote:
>> This is unfinished, but I wanted to hear what people think of this.
> Sounds useful: getaddrinfo is in POSIX, but Solaris 7, AIX 3, IRIX 6,
> HP-UX 10, HP-UX 11, OSF/1 4.0 don't have it, and Solaris 8, 9 have it
> only in libsocket.
>> In particular, is it a good idea to add a partial implementation of an
>> API?
> It depends :-) Certainly it's better if an implementation is complete,
> but we already have incomplete POSIX replacements in gnulib:
>   - an ftruncate which falls back to EIO when system support is insufficient.
>   - a gethostname which falls back to the empty string.
>   - a poll which doesn't work if the system's select() is too limited,
>   - a regex which doesn't cope correctly with multibyte characters.

I'll improve the patch, test it on some platforms, and then send an
updated version...

The libc implementation of getaddrinfoisn't covered by GPL.  It also
uses standard POSIX APIs like gethostbyname (but threaded versions),
though.  So I guess it can serve as inspiration for how to implement
some flags etc, but perhaps I shouldn't look too closely at it to
avoid infringing on the copyright.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]