kernel_stat.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /*
  7. * This file provides struct stat, taken from kernel 2.6.4. Verified
  8. * to match kernel 2.6.22.
  9. */
  10. struct kernel_stat {
  11. unsigned long st_dev;
  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 long st_rdev;
  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 long long st_ino;
  30. unsigned int st_mode;
  31. unsigned int st_nlink;
  32. unsigned long st_uid;
  33. unsigned long st_gid;
  34. unsigned long long st_rdev;
  35. long long st_size;
  36. unsigned long __pad1;
  37. unsigned long st_blksize;
  38. unsigned long long st_blocks;
  39. struct timespec st_atim;
  40. struct timespec st_mtim;
  41. struct timespec st_ctim;
  42. unsigned long __unused1;
  43. unsigned long __unused2;
  44. };
  45. #endif /* _BITS_STAT_STRUCT_H */