kernel_stat.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef _BITS_STAT_STRUCT_H
  2. #define _BITS_STAT_STRUCT_H
  3. #ifndef _LIBC
  4. #error bits/kernel_stat.h is for internal uClibc use only!
  5. #endif
  6. /* This file provides whatever this particular arch's kernel thinks
  7. * struct kernel_stat should look like... It turns out each arch has a
  8. * different opinion on the subject... */
  9. struct kernel_stat {
  10. unsigned char __pad1[6];
  11. unsigned short st_dev;
  12. unsigned long __pad2;
  13. unsigned long st_ino;
  14. unsigned short __pad3;
  15. unsigned short st_mode;
  16. unsigned short __pad4;
  17. unsigned short st_nlink;
  18. unsigned short __pad5;
  19. unsigned short st_uid;
  20. unsigned short __pad6;
  21. unsigned short st_gid;
  22. unsigned char __pad7[6];
  23. unsigned short st_rdev;
  24. unsigned long __pad8;
  25. unsigned long st_size;
  26. unsigned long __pad9; /* align 64-bit st_blocks to 2-word */
  27. unsigned long st_blksize;
  28. unsigned long __pad10; /* future possible st_blocks high bits */
  29. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  30. unsigned long __unused1;
  31. unsigned long st_atime;
  32. unsigned long __unused2;
  33. unsigned long st_mtime;
  34. unsigned long __unused3;
  35. unsigned long st_ctime;
  36. unsigned long long __unused4;
  37. };
  38. struct kernel_stat64 {
  39. unsigned char __pad1[6];
  40. unsigned short st_dev;
  41. unsigned long long st_ino;
  42. unsigned int st_mode;
  43. unsigned int st_nlink;
  44. unsigned long st_uid;
  45. unsigned long st_gid;
  46. unsigned char __pad2[6];
  47. unsigned short st_rdev;
  48. long long st_size;
  49. unsigned long __pad3; /* align 64-bit st_blocks to 2-word */
  50. unsigned long st_blksize;
  51. unsigned long __pad4; /* future possible st_blocks high bits */
  52. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  53. unsigned long __unused1;
  54. unsigned long st_atime;
  55. unsigned long __unused2;
  56. unsigned long st_mtime;
  57. unsigned long __unused3; /* will be high 32 bits of ctime someday */
  58. unsigned long st_ctime;
  59. unsigned long long __unused4;
  60. };
  61. #endif /* _BITS_STAT_STRUCT_H */