kernel_stat.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Ripped from linux/include/asm-x86_64/stat.h
  2. * and renamed 'struct stat' to 'struct kernel_stat' */
  3. #ifndef _ASM_X86_64_STAT_H
  4. #define _ASM_X86_64_STAT_H
  5. #define STAT_HAVE_NSEC 1
  6. struct kernel_stat {
  7. unsigned long st_dev;
  8. unsigned long st_ino;
  9. unsigned long st_nlink;
  10. unsigned int st_mode;
  11. unsigned int st_uid;
  12. unsigned int st_gid;
  13. unsigned int __pad0;
  14. unsigned long st_rdev;
  15. long st_size;
  16. long st_blksize;
  17. long st_blocks; /* Number 512-byte blocks allocated. */
  18. unsigned long st_atime;
  19. unsigned long st_atime_nsec;
  20. unsigned long st_mtime;
  21. unsigned long st_mtime_nsec;
  22. unsigned long st_ctime;
  23. unsigned long st_ctime_nsec;
  24. long __unused[3];
  25. };
  26. /* For 32bit emulation */
  27. struct __old_kernel_stat {
  28. unsigned short st_dev;
  29. unsigned short st_ino;
  30. unsigned short st_mode;
  31. unsigned short st_nlink;
  32. unsigned short st_uid;
  33. unsigned short st_gid;
  34. unsigned short st_rdev;
  35. unsigned int st_size;
  36. unsigned int st_atime;
  37. unsigned int st_mtime;
  38. unsigned int st_ctime;
  39. };
  40. /* x86-64 stat64 is same as stat */
  41. #define kernel_stat64 kernel_stat
  42. #endif