[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] getaddrinfo
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] getaddrinfo |
Date: |
Mon, 6 Sep 2004 17:24:23 +0200 |
User-agent: |
KMail/1.5 |
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.
Bruno