/*			Mike's Subroutines		*/
/*			INCLUDE FILE			*/

/* Change History:

	0.0a	Extracted from filecopy.inc
*/

/* miscellaneous definitions */

#define found == 0
#define true	1
#define false	0
#define success 1
#define fail	0
#define forever 1

/* msdos directory attributes */

#define readonly 	0x01
#define hidden  	0x02
#define systemfile 	0x04
#define vollabel 	0x08
#define dirtype 	0x10
#define archive		0x20


/* Define forward definitions that c86 cannot handle */

extern	CHAR *copytil();
extern	CHAR *copytiln();

/*page*/
/* Define useful structures */

#define LENpart 8
#define LENpath 80
#define LENfname 8
#define LENftype 3
#define LENfcb 32
#define ENDdir 255
#define ROOTdir 0

typedef struct  {
#ifdef aztec
	CHAR	fname[ LENfname];
	CHAR	ftype[ LENftype];
#else
	CHAR	msdosfname[ LENfname];
	CHAR	msdosftype[ LENftype];
#endif
	CHAR	attribute;
	CHAR	reserved[10];
	CHAR	updtime[2];
	CHAR	upddate[2];
	int	cluster;
	CHAR	filesize[4];
	} msdosfcb;

typedef struct  {
	CHAR	user;
#ifdef aztec
	CHAR	fname[ LENfname];
	CHAR	ftype[ LENftype];
#else
	CHAR	cpmfname[ LENfname];
	CHAR	cpmftype[ LENftype];
#endif
	CHAR	extent;
	CHAR	s1;
	CHAR	s2;
	CHAR	reccnt;
	CHAR	datamap[16];
	} cpmfcb;
 1

/* msdos directory attributes */

#define readonly 	0x01
#define hidden  	0x02
#define systemfile 	0x04
#define vollabel 	0x08
#define dirtype 	0x10
#define archive		0x20


/* Define forward definitions that c86 cannot handle */

extern	CHAR *copytil();
extern	CHAR *copytiln();

/*page*/
/* Define useful structures */

#define LENpart 8
#define LENpath 80
#define LENfname 8
#define LENftype 3
#define LENfcb 32
#define ENDdir 255
#define ROOTdir 0

typedef struct  {
#ifdef aztec
	CHAR	fname[ LENfname];
	CHAR	ftype[ LENftype];
#else
	CHAR	msdosfname[ LENfname];
	CHAR	msdosftype[ LENftype];
#endif
	CHAR	attribute;
	CHAR	reserved[10];
	CHAR	updtime[2];
	CHAR	upddate[2];
	int	cluster;
	CHAR	filesize[4];
	} msdosfcb;
