Subject: Re: Forcing all nsdispatch(3) methods to be invoked
To: Luke Mewburn <lukem@NetBSD.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 09/28/2004 12:36:44
--Apple-Mail-9--18596359
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Sep 28, 2004, at 8:26 AM, Luke Mewburn wrote:
> Some invokers of nsdispatch() (such as setgrent(3)) need
> to force all methods to be invoked, irrespective of the
> action criteria listed in nsswitch.conf(5). This can be
> achieved by adding NS_FORCEALL to defaults[0].flags before
> invoking nsdispatch(). The return value of nsdispatch()
> will be the result of the final call- back method invoked.
This seems perfectly reasonable to me. It's such a special case that
it seems silly to add a new nsdispatch() API variant to handle it.
-- Jason R. Thorpe <thorpej@shagadelic.org>
--Apple-Mail-9--18596359
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFBWb1MOpVKkaBm8XkRAjHxAJ9+HBCxDjzUqFs1/CCub9WDvEk9egCgnZBq
UWA6ryIIkSefrpSUCR54sw4=
=Fcp7
-----END PGP SIGNATURE-----
--Apple-Mail-9--18596359--