ypupdated_extern.h revision 90297
174462Salfred/* $FreeBSD: head/usr.sbin/rpc.ypupdated/ypupdated_extern.h 90297 2002-02-06 13:30:31Z des $ */ 226236Swpaul#include <db.h> 326236Swpaul 426236Swpaul#define YPOP_CHANGE 1 /* change, do not add */ 526236Swpaul#define YPOP_INSERT 2 /* add, do not change */ 626236Swpaul#define YPOP_DELETE 3 /* delete this entry */ 726236Swpaul#define YPOP_STORE 4 /* add, or change */ 826236Swpaul 926236Swpaul#define ERR_ACCESS 1 1026236Swpaul#define ERR_MALLOC 2 1126236Swpaul#define ERR_READ 3 1226236Swpaul#define ERR_WRITE 4 1326236Swpaul#define ERR_DBASE 5 1426236Swpaul#define ERR_KEY 6 1526236Swpaul 1626236Swpaul#ifndef YPLIBDIR 1726236Swpaul#define YPLIBDIR "/usr/libexec/" 1826236Swpaul#endif 1926236Swpaul 2026236Swpaul#ifndef MAP_UPPATE 2126236Swpaul#define MAP_UPDATE "ypupdate" 2226236Swpaul#endif 2326236Swpaul 2426236Swpaul#define MAP_UPDATE_PATH YPLIBDIR MAP_UPDATE 2526236Swpaul 2626236Swpaulextern int children; 2790297Sdesextern void ypu_prog_1(struct svc_req *, register SVCXPRT *); 2890297Sdesextern int localupdate(char *, char *, u_int, u_int, char *, u_int, char *); 2990297Sdesextern int ypmap_update(char *, char *, u_int, u_int, char *, u_int, char *); 3090297Sdesextern int yp_del_record(DB *, DBT *); 31