stat.h 294 B

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