This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/15726] getaddrinfo() returns incorrect status


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]