#include	"sys/types.h"
#include	"sys/dir.h"
#include	"stdio.h"
#include	"ctype.h"
#include	"quotas.h"


#define	NTHING		300
#define	THINGLEN	16
#define	CRONLOG		"/usr/lib/cronlog"
#define	SYSLOG		"/acct/.mail"
#define	LASTSYSLOG	"/staff/john/tron/.skpt"
#define	QUODAT		"/staff/john/tron/.quodat"
#define	QUOTMP		"/staff/john/tron/.quotmp"
#define	TRONDIR		"/staff/john/tron/data/"
#define	PTMP	"/staff/john/tron/data/ptmp"
#define PASSWD  "/etc/passwd"
#define PDIFF   "/staff/john/tron/data/pdiff"
#define PDATA   "/staff/john/tron/data/passwdata"

short sig2;

#define	NEX		64
#define	NENT		320
char	newthings[NTHING][THINGLEN];
char	exc[NEX][DIRSIZ+1];
char	obuf[512];
short	*po;
short	nent, nex, fo, exflg;
short	any;
short	qd[2], qr[2];
char	qb[2][512];
struct qent  *pqp[2];
long	exchksum, chks();

struct	direc 	{
	char *d_namep;
	char *d_data;
	short d_timeo;
};
extern struct direc rec[];
extern	char *mess[];

struct	stat	{
	dev_t	st_dev;
	ino_t	st_inumber;
	short	st_mode;
	short	st_nlinks;
	short	st_uid;
	short	st_gid;
	dev_t	st_rdev;
	daddr_t	st_size;
	time_t	st_time[2];
	daddr_t	st_chksum;
};

struct	sstat	{
	char ss_name[14];
	struct	stat	ss_stat;
};

struct 	sstat	stbuf[NENT];


short	nth;

/*
 * Flag bits for file checking
 */

#define	MTIME	01
#define	ATIME	02
#define	CKSUM	04

