This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/15726] getaddrinfo() returns incorrect status
- From: "jdthood at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 01 Sep 2013 00:46:34 +0000
- Subject: [Bug network/15726] getaddrinfo() returns incorrect status
- Auto-submitted: auto-generated
- References: <bug-15726-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15726
--- Comment #30 from Thomas Hood <jdthood at gmail dot com> ---
(In reply to Kurt Roeckx from comment #27)
> There clearly is disagreement about what the behavior should be, which is
> why I didn't say what should be returned. I can see arguments for both ways.
>
> > [EAI_NONAME]
> > The name does not resolve for the supplied parameters. [or]
> > Neither nodename nor servname were supplied. At least one of these shall be
> > supplied.
>
> I can interpret the "for the supplied parameters" as meaning the AI_NUMERIC*
> cases, since it seems the reason for the failure is is the parameters. And
> the text above indicates in which cases EAI_NONAME should be returned.
Kurt, can you explain this interpretation more fully?
Rereading the quoted code snippets in my comment #7 I see support for the
proposition that in other UNIXes EAI_NONAME is returned either when nodename
and servname are NULL or in another case where the AI_NUMERIC flag is set.
--
You are receiving this mail because:
You are on the CC list for the bug.