YPCLNT(3) BSD Library Functions Manual YPCLNT(3)
NAME
yp_all, yp_bind, yp_first, yp_get_default_domain, yp_master, yp_match, yp_next, yp_order, yp_unbind, yperr_string, ypprot_err -- Interface to
the YP subsystem
SYNOPSIS
#include <rpc/rpc.h>
#include <rpcsvc/ypclnt.h>
#include <rpcsvc/yp_prot.h>
int
yp_all(char *indomain, char *inmap, struct ypall_callback *incallback);
int
yp_bind(char *dom);
int
yp_first(char *indomain, char *inmap, char **outkey, int *outkeylen, char **outval, int *outvallen);
int
yp_get_default_domain(char **domp);
int
yp_master(char *indomain, char *inmap, char **outname);
int
yp_match(char *indomain, char *inmap, const char *inkey, int inkeylen, char **outval, int *outvallen);
int
yp_next(char *indomain, char *inmap, char *inkey, int inkeylen, char **outkey, int *outkeylen, char **outval, int *outvallen);
int
yp_order(char *indomain, char *inmap, char *outorder);
void
yp_unbind(char *dom);
char *
yperr_string(int incode);
int
ypprot_err(unsigned int incode);
DESCRIPTION
The ypclnt suite provides an interface to the YP subsystem. For a general description of the YP subsystem, see yp(8).
For all functions, input values begin with in and output values begin with out. Any output values of type char ** should be the addresses of
uninitialized character pointers. Memory will be allocated by the YP client routines using malloc(). This memory can later be freed by the
user if there is no additional need for the data stored there. For outkey and outval, two extra bytes of memory are allocated for a '
' and
'