This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: nss_dns addons and thread safety
- From: Ulrich Drepper <drepper at redhat dot com>
- To: George Beshers <gbeshers at comcast dot net>
- Cc: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Mon, 28 Jun 2004 09:01:07 -0700
- Subject: Re: nss_dns addons and thread safety
- Organization: Red Hat, Inc.
- References: <40E0336B.7090904@comcast.net>
George Beshers wrote:
> In resolv/ I would like to
> 1) add an nss_mdns directory
> 2) have a hook to dynamically "replace" the call to __libc_res_nsend() in
> __libc_res_nquery with a call to __libc_res_mcsend() [multi-cast send].
No, this is not how it works. You cannot just change existing code.
Instead create an add-on. Build the new nss code in that directory. Or
even better, just like the nss_ldap module, build it outside the glibc
tree altogether. Then people can chose to replace their "dns" entries
in the nsswitch.conf with the name you have chosen for your code.
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â