kernel_stat.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 int st_dev;
  11. unsigned int st_ino;
  12. unsigned int st_mode;
  13. unsigned int st_nlink;
  14. unsigned int st_uid;
  15. unsigned int st_gid;
  16. unsigned int st_rdev;
  17. long int st_size;
  18. unsigned long st_atime;
  19. unsigned long st_mtime;
  20. unsigned long st_ctime;
  21. unsigned int st_blksize;
  22. int st_blocks;
  23. unsigned int st_flags;
  24. unsigned int st_gen;
  25. };
  26. struct kernel_stat64 {
  27. unsigned long st_dev;
  28. unsigned long st_ino;
  29. unsigned long st_rdev;
  30. long st_size;
  31. unsigned long st_blocks;
  32. unsigned int st_mode;
  33. unsigned int st_uid;
  34. unsigned int st_gid;
  35. unsigned int st_blksize;
  36. unsigned int st_nlink;
  37. unsigned int __pad0;
  38. unsigned long st_atime;
  39. unsigned long st_atimensec;
  40. unsigned long st_mtime;
  41. unsigned long st_mtimensec;
  42. unsigned long st_ctime;
  43. unsigned long st_ctimensec;
  44. long __unused[3];
  45. };
  46. #endif /* _BITS_STAT_STRUCT_H */