| #define value
Refer to nsswitch.conf(5) for a complete description of what each source type is.
.Vt nss_method functions must return one of the following values depending upon status of the lookup:
Return value Status code
Refer to nsswitch.conf(5) for a complete description of each status code.
The nsdispatch function returns the value of the method that caused the dispatcher to terminate, or NS_NOTFOUND otherwise.
.Fx Ns s
.Lb libc provides stubs for compatibility with NSS modules written for the GNU C Library nsswitch interface. However, these stubs only support the use of the "passwd" and "group" databases.
hesiod(3), stdarg(3), nsswitch.conf(5), yp(8)
The nsdispatch function first appeared in
.Fx 5.0 . It was imported from the
.Nx Project, where it appeared first in
.Nx 1.4 . Support for NSS modules first appeared in
.Fx 5.1 .
Luke Mewburn <email@example.com> wrote this freely-distributable name-service switch implementation, using ideas from the ULTRIX svc.conf(5) and Solaris nsswitch.conf(4) manual pages. The
.Fx Project added the support for threads and NSS modules, and normalized the uses of nsdispatch within the standard C library.