#ifndef stat_h #define stat_h #define T_DIR 1 // Directory #define T_FILE 2 // File #define T_DEV 3 // Device #include "types.h" struct stat { short type; // Type of file int dev; // File system's disk device uint ino; // Inode number short nlink; // Number of links to file uint size; // Size of file in bytes }; /* Keeps track of bytes * read and written on fd */ struct iostats { uint read_bytes; // the total number of bytes read uint write_bytes; // the total number of bytes written }; #endif