xref: /freebsd/usr.sbin/rpc.ypupdated/ypupdated_extern.h (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1 /*
2  */
3 
4 #include <db.h>
5 
6 #define	YPOP_CHANGE 1			/* change, do not add */
7 #define	YPOP_INSERT 2			/* add, do not change */
8 #define	YPOP_DELETE 3			/* delete this entry */
9 #define	YPOP_STORE  4			/* add, or change */
10 
11 #define	ERR_ACCESS	1
12 #define	ERR_MALLOC	2
13 #define	ERR_READ	3
14 #define	ERR_WRITE	4
15 #define	ERR_DBASE	5
16 #define	ERR_KEY		6
17 
18 #ifndef YPLIBDIR
19 #define YPLIBDIR "/usr/libexec/"
20 #endif
21 
22 #ifndef MAP_UPPATE
23 #define MAP_UPDATE "ypupdate"
24 #endif
25 
26 #define MAP_UPDATE_PATH YPLIBDIR MAP_UPDATE
27 
28 extern int children;
29 extern void ypu_prog_1(struct svc_req *, register SVCXPRT *);
30 extern int localupdate(char *, char *, u_int, u_int, char *, u_int, char *);
31 extern int ypmap_update(char *, char *, u_int, u_int, char *, u_int, char *);
32 extern int yp_del_record(DB *, DBT *);
33