This is the mail archive of the libc-alpha@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]

Re: gethostbyaddr without /etc/{resolv,nsswitch}.conf


Mike Frysinger <vapier@gentoo.org> skribis:

> your use case is reasonable -- if /etc/resolv.conf does not exist, looking up 
> an IP address which is listed in /etc/hosts should give the right answer.

Agreed.

> if dns has no settings defined, then it should not be returning NOTFOUND imo.  
> it should be UNAVAIL.  the pending question then is whether this is an ABI 
> break that matters.  if it is, it should be easy to create a symbol version 
> that returns the old one and create a new symbol version that returns the 
> right value.  if it isn't, then let's just change the return value and be 
> done.

Perhaps the conservative approach of adding a versioned symbol is safer.

What do people think?

Thanks for your input,
Ludoâ.


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