aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net/nsdispatch.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/nsdispatch.3')
-rw-r--r--lib/libc/net/nsdispatch.311
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/net/nsdispatch.3 b/lib/libc/net/nsdispatch.3
index d1d8d5a0e71e..a1da892d4fc4 100644
--- a/lib/libc/net/nsdispatch.3
+++ b/lib/libc/net/nsdispatch.3
@@ -85,7 +85,7 @@ typedef struct _ns_dtab {
void *mdata;
} ns_dtab;
.Ed
-.Bd -ragged -offset indent
+.Pp
The
.Fa dtab
array should consist of one entry for each source type that is
@@ -105,7 +105,6 @@ values for
.Va method ,
and
.Va mdata .
-.Ed
.Pp
Additionally, methods may be implemented in NSS modules, in
which case they are selected using the
@@ -129,10 +128,10 @@ structures, which have the following format:
.Bd -literal -offset indent
typedef struct _ns_src {
const char *src;
- u_int32_t flags;
+ uint32_t flags;
} ns_src;
.Ed
-.Bd -ragged -offset indent
+.Pp
The
.Fa defaults
array should consist of one entry for each source to be configured by
@@ -157,12 +156,13 @@ and
set to 0.
.Pp
For convenience, a global variable defined as:
+.Pp
.Dl extern const ns_src __nsdefaultsrc[];
+.Pp
exists which contains a single default entry for the source
.Sq files
that may be used by callers which do not require complicated default
rules.
-.Ed
.Pp
.Sq Va ...
are optional extra arguments, which are passed to the appropriate method
@@ -183,7 +183,6 @@ While there is support for arbitrary sources, the following
Refer to
.Xr nsswitch.conf 5
for a complete description of what each source type is.
-.Pp
.Ss Method return values
The
.Vt nss_method