/*
 *	dir.h
 */

#define	AT_DIR		0x10
#define	IS_DIR(dp)	(dp->d_att & AT_DIR)

typedef struct direct {
    struct direct	*d_next;
    char		d_mark;
    unsigned char	d_att;
    unsigned short int	d_time,d_date;
    unsigned long	d_size;
    char		d_name[14];
} DIRECT;

typedef struct {
    DIRECT	*dd_top;
    DIRECT	*dd_now;
} DIR;

DIR	*opendir(char *dir, int mode);
DIRECT	*readdir(DIR *dirp);
void	seekdir(DIR *dirp,int n);
void	closedir(DIR *dirp);
int	countdir(DIR *dirp);
int	dos_stat(char *name, DIRECT *st);
char	*path_make(char *dir, char *file);
int     wild_mach(char *wild, char *file);
