kernel_stat.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _BITS_STAT_STRUCT_H
  2. #define _BITS_STAT_STRUCT_H
  3. /* This file provides whatever this particular arch's kernel thinks
  4. * struct kernel_stat should look like... It turns out each arch has a
  5. * different opinion on the subject... */
  6. #warning "Please verify struct kernel_stat for your architecture actually matches struct kernel_stat for x86 If it doesn't, then you will need to add a proper kernel_stat.h for your architecture..."
  7. struct kernel_stat {
  8. unsigned short st_dev;
  9. unsigned short __pad1;
  10. unsigned long st_ino;
  11. unsigned short st_mode;
  12. unsigned short st_nlink;
  13. unsigned short st_uid;
  14. unsigned short st_gid;
  15. unsigned short st_rdev;
  16. unsigned short __pad2;
  17. unsigned long st_size;
  18. unsigned long st_blksize;
  19. unsigned long st_blocks;
  20. unsigned long st_atime;
  21. unsigned long __unused1;
  22. unsigned long st_mtime;
  23. unsigned long __unused2;
  24. unsigned long st_ctime;
  25. unsigned long __unused3;
  26. unsigned long __unused4;
  27. unsigned long __unused5;
  28. };
  29. struct kernel_stat64 {
  30. unsigned short st_dev;
  31. unsigned char __pad0[10];
  32. #define _HAVE_STAT64___ST_INO
  33. unsigned long __st_ino;
  34. unsigned int st_mode;
  35. unsigned int st_nlink;
  36. unsigned long st_uid;
  37. unsigned long st_gid;
  38. unsigned short st_rdev;
  39. unsigned char __pad3[10];
  40. long long st_size;
  41. unsigned long st_blksize;
  42. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  43. unsigned long __pad4; /* future possible st_blocks high bits */
  44. unsigned long st_atime;
  45. unsigned long __pad5;
  46. unsigned long st_mtime;
  47. unsigned long __pad6;
  48. unsigned long st_ctime;
  49. unsigned long __pad7; /* will be high 32 bits of ctime someday */
  50. unsigned long long st_ino;
  51. };
  52. #endif /* _BITS_STAT_STRUCT_H */