1 #define T_DIR 1 // Directory 2 #define T_FILE 2 // File 3 #define T_DEVICE 3 // Device 4 5 struct stat { 6 int dev; // File system's disk device 7 uint ino; // Inode number 8 short type; // Type of file 9 short nlink; // Number of links to file 10 uint64 size; // Size of file in bytes 11 };