kernel_stat.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 short st_dev;
  11. unsigned short __pad1;
  12. unsigned long st_ino;
  13. unsigned short st_mode;
  14. unsigned short st_nlink;
  15. unsigned short st_uid;
  16. unsigned short st_gid;
  17. unsigned short st_rdev;
  18. unsigned short __pad2;
  19. unsigned long st_size;
  20. unsigned long st_blksize;
  21. unsigned long st_blocks;
  22. struct timespec st_atim;
  23. struct timespec st_mtim;
  24. struct timespec st_ctim;
  25. unsigned long __unused4;
  26. unsigned long __unused5;
  27. };
  28. struct kernel_stat64 {
  29. unsigned long long st_dev;
  30. unsigned char __pad1[2];
  31. #define _HAVE_STAT64___ST_INO
  32. unsigned long __st_ino;
  33. unsigned int st_mode;
  34. unsigned int st_nlink;
  35. unsigned long st_uid;
  36. unsigned long st_gid;
  37. unsigned short st_rdev;
  38. unsigned char __pad3[10];
  39. long long st_size;
  40. unsigned long st_blksize;
  41. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  42. unsigned long __pad4; /* future possible st_blocks high bits */
  43. struct timespec st_atim;
  44. struct timespec st_mtim;
  45. struct timespec st_ctim;
  46. unsigned long long st_ino;
  47. };
  48. #endif /* _BITS_STAT_STRUCT_H */