kernel_stat.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 stat should look like... It turns out each arch has a
  8. * different opinion on the subject... */
  9. struct kernel_stat {
  10. unsigned long st_dev;
  11. unsigned long st_ino;
  12. unsigned short st_mode;
  13. unsigned short st_nlink;
  14. unsigned short st_uid;
  15. unsigned short st_gid;
  16. unsigned short st_rdev;
  17. unsigned short __pad2;
  18. unsigned long st_size;
  19. unsigned long st_blksize;
  20. unsigned long st_blocks;
  21. struct timespec st_atim;
  22. struct timespec st_mtim;
  23. struct timespec st_ctim;
  24. unsigned long __unused4;
  25. unsigned long __unused5;
  26. };
  27. struct kernel_stat64 {
  28. unsigned long long st_dev;
  29. unsigned char __pad0[4];
  30. #define _HAVE_STAT64___ST_INO
  31. unsigned long __st_ino;
  32. unsigned int st_mode;
  33. unsigned int st_nlink;
  34. unsigned long st_uid;
  35. unsigned long st_gid;
  36. unsigned short st_rdev;
  37. unsigned char __pad3[10];
  38. long long st_size;
  39. unsigned long st_blksize;
  40. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  41. unsigned long __pad4; /* future possible st_blocks high bits */
  42. struct timespec st_atim;
  43. struct timespec st_mtim;
  44. struct timespec st_ctim;
  45. unsigned long long st_ino;
  46. };
  47. #endif /* _BITS_STAT_STRUCT_H */