


#

#define	AFILE	"/accting/actfil"
#define	DFILE	"/accting/acctdata"
#define TFILE	"/accting/today"
#define IBMFILE	"/accting/360file"

struct	acctrec {
	short	a_uid;
	short	a_gid;
	long	a_connect;
	long	a_diskblks;
	long	a_syscpu;
	long	a_usrcpu;
};


#define	MAXACGIDS	 256
#define	TMSIZ 	((sizeof (long)) *3)

struct	ibment	{
	char	gid[3];
	char	colon0;
	char	uid[5];
	char	colon1;
	char	name[8];
	char	colon2;
	char	acct[8];
	char	colon3;
	char	exp[8];
	char	colon4;
	char	status;
	char	colon5;
	char	send;
	char	colon6;
	char	newline;
};


#define	IREAD	(sizeof (struct ibment))
#define	AREAD	(sizeof (struct acctrec))
#define	akey(u)	(ukey((u) > 9999 ? (((u) - 9700) << 3) : ((u) << 3)))



/*
 * Defines here are what we charge for different shifts
 */
#define	PRIMERATE	3.25
#define	NORMRATE	1.75
#define	OFFPEAK		1.15

#define	CONRATE	1.15
#define	TICRATE 25.00
#define	DISKRATE	0.60
