kernel_stat.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. struct timespec st_atim;
  31. struct timespec st_mtim;
  32. struct timespec st_ctim;
  33. unsigned long long __unused4;
  34. };
  35. struct kernel_stat64 {
  36. unsigned char __pad1[6];
  37. unsigned short st_dev;
  38. unsigned long long st_ino;
  39. unsigned int st_mode;
  40. unsigned int st_nlink;
  41. unsigned long st_uid;
  42. unsigned long st_gid;
  43. unsigned char __pad2[6];
  44. unsigned short st_rdev;
  45. long long st_size;
  46. unsigned long __pad3; /* align 64-bit st_blocks to 2-word */
  47. unsigned long st_blksize;
  48. unsigned long __pad4; /* future possible st_blocks high bits */
  49. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  50. struct timespec st_atim;
  51. struct timespec st_mtim;
  52. struct timespec st_ctim;
  53. unsigned long long __unused4;
  54. };
  55. #endif /* _BITS_STAT_STRUCT_H */