1
0

inode.h 637 B

1234567891011121314151617181920212223
  1. /*
  2. * Inode structure as it appears on disk.
  3. * The 40 address bytes:
  4. * 39 used; 13 addresses
  5. * of 3 bytes each.
  6. */
  7. #ifndef _rhSYS_FS_DNIX_INODE
  8. #define _rhSYS_FS_DNIX_INODE
  9. struct dinode
  10. {
  11. unsigned short di_mode; /* mode and type of file */
  12. short di_nlink; /* number of links to file */
  13. short di_uid; /* owner's user id */
  14. short di_gid; /* owner's group id */
  15. daddr_t di_size; /* number of bytes infile */
  16. char di_addr[40]; /* disk block addresses */
  17. time_t di_atime; /* time last accessed */
  18. time_t di_mtime; /* time last modified */
  19. time_t di_ctime; /* time inode last modified */
  20. };
  21. #endif /* _rhSYS_FS_DNIX_INODE */