kernel_stat.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #if __WORDSIZE == 64
  10. #define kernel_stat kernel_stat64
  11. #else
  12. struct kernel_stat {
  13. unsigned short st_dev;
  14. unsigned long st_ino;
  15. unsigned short st_mode;
  16. short st_nlink;
  17. unsigned short st_uid;
  18. unsigned short st_gid;
  19. unsigned short st_rdev;
  20. long st_size;
  21. struct timespec st_atim;
  22. struct timespec st_mtim;
  23. struct timespec st_ctim;
  24. long st_blksize;
  25. long st_blocks;
  26. unsigned long __unused4[2];
  27. };
  28. #endif
  29. struct kernel_stat64 {
  30. unsigned long long st_dev;
  31. unsigned long long st_ino;
  32. unsigned int st_mode;
  33. unsigned int st_nlink;
  34. unsigned int st_uid;
  35. unsigned int st_gid;
  36. unsigned long long st_rdev;
  37. unsigned char __pad3[8];
  38. long long st_size;
  39. unsigned int st_blksize;
  40. unsigned char __pad4[8];
  41. unsigned int st_blocks;
  42. struct timespec st_atim;
  43. struct timespec st_mtim;
  44. struct timespec st_ctim;
  45. unsigned int __unused4;
  46. unsigned int __unused5;
  47. };
  48. #endif /* _BITS_STAT_STRUCT_H */