[RFC][PATCH 3/4][BZ 17083] NSS: Introduce gethostbyname5_r function
Florian Weimer
fweimer@redhat.com
Tue Sep 12 10:03:00 GMT 2017
On 09/05/2017 06:05 PM, Åukasz Stelmach wrote:
> Add af (address family) to the list of arguments of gethostbyname4_r
> function in files, dns, nis and nisplus module and rename the function to
> gethostbyname5_r. Pass the af value to the underlying parsing functions.
> Define gethostbyname4_r as a wrapper for the former passing af set
> to AF_UNSPEC.
I'd prefer if we have a single ultimate name resolution function,
instead of doing function 5 now, and function 6 later, when we have
dealt with the malloc matters.
One way to deal with the dlmopen/static dlopen issue would be to define
a deallocation function which goes with the 5 function. If this
function called free, it would automatically end up at the right definition.
Thanks,
Florian
More information about the Libc-alpha
mailing list