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