#ifndef __YPSYM_H
#define __YPSYM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ndbm.h>
#define DATUM
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include <rpc/rpc.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <rpcsvc/yp_prot.h>
#include "ypv1_prot.h"
#include <rpcsvc/ypclnt.h>
typedef void (*PFV)();
typedef int (*PFI)();
typedef unsigned int (*PFU)();
typedef long int (*PFLI)();
typedef unsigned long int (*PFULI)();
typedef short int (*PFSI)();
typedef unsigned short int (*PFUSI)();
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifdef NULL
#undef NULL
#endif
#define NULL 0
#define MAXHASH 1009
#define MAXALIASLEN 8
#define YPINTERTRY_TIME 10
#define YPTOTAL_TIME 30
#define YPNOPORT ((unsigned short) 0)
extern bool ypinitialization_done;
extern struct timeval ypintertry;
extern struct timeval yptimeout;
extern char myhostname[];
extern bool silent;
#ifdef MINUS_C_OPTION
extern bool multiflag;
#endif
extern void logprintf(char *format, ...);
extern void get_secure_nets(char *daemon_name);
extern bool ypcheck_map_existence(char *pname);
extern bool ypget_map_master(char **owner, DBM *fdb);
extern DBM *ypset_current_map(char *map, char *domain, uint_t *error);
extern void ypclr_current_map(void);
extern bool_t ypmkfilename(char *domain, char *map, char *path);
extern int yplist_maps();
extern bool yp_map_access(SVCXPRT *transp, uint_t *error, DBM *fdb);
extern bool ypget_map_order(char *map, char *domain, uint_t *order);
extern bool ypcheck_domain();
extern datum dbm_do_nextkey();
extern void ypclr_current_map(void);
extern void ypdomain(SVCXPRT *transp, bool always_respond);
extern void ypmatch(SVCXPRT *transp, struct svc_req *rqstp);
extern void ypfirst(SVCXPRT *transp);
extern void ypnext(SVCXPRT *transp);
extern void ypxfr(SVCXPRT *transp, int prog);
extern void ypall(SVCXPRT *transp);
extern void ypmaster(SVCXPRT *transp);
extern void yporder(SVCXPRT *transp);
extern void ypmaplist(SVCXPRT *transp);
extern void ypoldmatch(SVCXPRT *transp, struct svc_req *rqstp);
extern void ypoldfirst(SVCXPRT *transp);
extern void ypoldnext(SVCXPRT *transp);
extern void ypoldpoll(SVCXPRT *transp);
extern void ypoldpush(SVCXPRT *transp);
extern void ypoldpull(SVCXPRT *transp);
extern void ypoldget(SVCXPRT *transp);
extern int yp_matchdns(DBM *, struct ypreq_key *, struct ypresp_val *);
extern int yp_oldmatchdns(DBM *fdb,
struct yprequest *req, struct ypresponse *resp);
extern bool _xdr_ypreqeust(XDR *xdrs, struct yprequest *ps);
extern bool _xdr_ypresponse(XDR *xdrs, struct ypresponse *ps);
extern void setup_resolv(bool *fwding, int *child, CLIENT **client,
char *tp_type, long prognum);
extern int resolv_req(bool *fwding, CLIENT **client, int *pid,
char *tp, SVCXPRT *xprt, struct ypreq_key *req,
char *map);
struct listofnames
{
struct listofnames *nextname;
char *name;
};
typedef struct listofnames listofnames;
#ifdef __cplusplus
}
#endif
#endif