This is the mail archive of the libc-alpha@sources.redhat.com 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: nss_dns addons and thread safety


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 â


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