/* Structure for find first/next (_find()).
NOTE: the DPB pointer is a double word 
character pointer; here it is declared as a
long, to avoid problems with the various
size of char *'s.

   This must be compiled with -B. */

#pragma pack(1)		/* BYTE ALIGNMENT */

struct _xfbuf {
 char s_attrib;		/* Search attribute */

/* These do not need to be initialized */

 char drive;		/* 0 == current, 1 == A: ... */
 char fcbname[11];	/* FCB name, */
 unsigned ent;
 long dpb_ptr;
 unsigned dirstart;

/* These are returned by DOS */

 char f_attrib;		/* found attribute, */
 unsigned time;		/* Packed time, */
 unsigned date;		/* Packed date */
 long fsize;		/* file size, */
 char name[13];		/* found name */
};

#pragma pack()		/* restore */

#define RO 0x01		/* Read only attribute. */
#define HI 0x02		/* Hidden attribute, */
#define SY 0x04		/* System attribute, */
#define VO 0x08		/* Volume ID */
#define DI 0x10		/* directory */
#define AR 0x20		/* Archive, */
#define TG1 0x40	/* Tag #1 */
#define TG2 0x80	/* Tag #2 */
