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