#ifndef _DIRTNT_H #define _DIRENT_H #define MAX_FN_LEN 256 /* same of kos/fs.h dirent_t */ struct dirent { int size; char d_name[MAX_FN_LEN]; unsigned int time; unsigned int attr; }; //#include typedef struct __DIR DIR; DIR *opendir (const char *); struct dirent *readdir (DIR *); int closedir (DIR *); #endif