ypupdated_extern.h revision 26236
126236Swpaul#include <db.h> 226236Swpaul 326236Swpaul#define YPOP_CHANGE 1 /* change, do not add */ 426236Swpaul#define YPOP_INSERT 2 /* add, do not change */ 526236Swpaul#define YPOP_DELETE 3 /* delete this entry */ 626236Swpaul#define YPOP_STORE 4 /* add, or change */ 726236Swpaul 826236Swpaul#define ERR_ACCESS 1 926236Swpaul#define ERR_MALLOC 2 1026236Swpaul#define ERR_READ 3 1126236Swpaul#define ERR_WRITE 4 1226236Swpaul#define ERR_DBASE 5 1326236Swpaul#define ERR_KEY 6 1426236Swpaul 1526236Swpaul#ifndef YPLIBDIR 1626236Swpaul#define YPLIBDIR "/usr/libexec/" 1726236Swpaul#endif 1826236Swpaul 1926236Swpaul#ifndef MAP_UPPATE 2026236Swpaul#define MAP_UPDATE "ypupdate" 2126236Swpaul#endif 2226236Swpaul 2326236Swpaul#define MAP_UPDATE_PATH YPLIBDIR MAP_UPDATE 2426236Swpaul 2526236Swpaulextern int children; 2626236Swpaulextern void ypu_prog_1 __P(( struct svc_req *, register SVCXPRT * )); 2726236Swpaulextern int localupdate __P(( char *, char *, u_int, u_int, char *, u_int, char * )); 2826236Swpaulextern int ypmap_update __P(( char *, char *, u_int, u_int, char *, u_int, char * )); 2926236Swpaulextern int yp_del_record __P(( DB *, DBT * )); 30