.Nm ypprot_err
.Nd Interface to the YP subsystem
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.Fd #include <rpc/rpc.h>
.Fd #include <rpcsvc/ypclnt.h>
.Fd #include <rpcsvc/yp_prot.h>
.Ft int
The
.Nm ypclnt
suite provides the following functionality:
-.Bl -tag -width Fn yp_match
+.Bl -tag -width ".Fn yperr_string"
.It Fn yp_match
Provides the value associated with the given key.
.It Fn yp_first
.Pp
.Bd -literal -offset indent
int foreach (
- int instatus,
+ unsigned long instatus,
char *inkey,
int inkeylen,
char *inval,
int invallen,
- char *indata
+ void *indata
);
.Ed
.Pp
.El
.It Fn yp_order
Returns the order number for a map.
+The order number is updated whenever a map is updated.
+Clients may use the order number to check whether they are using the most
+recent map.
.It Fn yp_master
Returns the hostname for the machine on which the master YP server process for
a map is running.