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