#include int dirstat(byte *file, Dir *dir) { byte buf[DIRLEN]; if(stat(file, buf) == -1) return -1; convM2D(buf, dir); return 0; }