ypupdated_extern.h revision 90665
1/* 2 * $FreeBSD: head/usr.sbin/rpc.ypupdated/ypupdated_extern.h 90665 2002-02-15 00:46:32Z des $ 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 29extern int children; 30extern void ypu_prog_1(struct svc_req *, register SVCXPRT *); 31extern int localupdate(char *, char *, u_int, u_int, char *, u_int, char *); 32extern int ypmap_update(char *, char *, u_int, u_int, char *, u_int, char *); 33extern int yp_del_record(DB *, DBT *); 34