kernel_stat.h 692 B

123456789101112131415161718192021222324252627282930
  1. /* Ripped from linux/include/asm-x86_64/stat.h
  2. * and renamed 'struct stat' to 'struct kernel_stat' */
  3. #ifndef _BITS_STAT_STRUCT_H
  4. #define _BITS_STAT_STRUCT_H
  5. struct kernel_stat {
  6. unsigned long st_dev;
  7. unsigned long st_ino;
  8. unsigned long st_nlink;
  9. unsigned int st_mode;
  10. unsigned int st_uid;
  11. unsigned int st_gid;
  12. unsigned int __pad0;
  13. unsigned long st_rdev;
  14. long st_size;
  15. long st_blksize;
  16. long st_blocks; /* Number 512-byte blocks allocated. */
  17. struct timespec st_atim;
  18. struct timespec st_mtim;
  19. struct timespec st_ctim;
  20. long __unused[3];
  21. };
  22. /* x86-64 stat64 is same as stat */
  23. #define kernel_stat64 kernel_stat
  24. #endif