Re: [bug-gnulib] Incomplete getaddrinfo module

2005-09-15 Thread Bruno Haible
Yoann Vandoorselaere wrote: The getaddrinfo module in GnuLib will often result in broken application behavior because it is really a simple replacement which fail to handle very common getaddrinfo usage pattern. A common example of why it might fail is: if (hints (hints-ai_flags

Re: [bug-gnulib] Incomplete getaddrinfo module

2005-09-15 Thread Yoann Vandoorselaere
On Thu, 2005-09-15 at 13:35 +0200, Bruno Haible wrote: Yoann Vandoorselaere wrote: The getaddrinfo module in GnuLib will often result in broken application behavior because it is really a simple replacement which fail to handle very common getaddrinfo usage pattern. A common example of

Re: [bug-gnulib] Incomplete getaddrinfo module

2005-09-15 Thread Yoann Vandoorselaere
On Thu, 2005-09-15 at 10:41 -0400, Derek Price wrote: Yoann Vandoorselaere wrote: if (hints (hints-ai_flags ~AI_CANONNAME)) /* FIXME: Support more flags. */ return EAI_BADFLAGS; If you say which flags your application needs to work, maybe Simon can do something about

Re: [bug-gnulib] Incomplete getaddrinfo module

2005-09-15 Thread Derek Price
Yoann Vandoorselaere wrote: if (hints (hints-ai_flags ~AI_CANONNAME)) /* FIXME: Support more flags. */ return EAI_BADFLAGS; If you say which flags your application needs to work, maybe Simon can do something about it? For my own use, I simply remove this check. This is

Re: [bug-gnulib] Incomplete getaddrinfo module

2005-09-15 Thread Derek Price
Yoann Vandoorselaere wrote: I think these flags are part of POSIX. Quote from the POSIX manpage: I'm not arguing that. I'm simply stating that if the GNULIB module is going to *ignore* these POSIX specified flags, as you said your app does, then the reasons for this and any potential