kernel_stat.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. long st_atime;
  22. unsigned long __unused1;
  23. long st_mtime;
  24. unsigned long __unused2;
  25. long st_ctime;
  26. unsigned long __unused3;
  27. long st_blksize;
  28. long st_blocks;
  29. unsigned long __unused4[2];
  30. };
  31. #endif
  32. struct kernel_stat64 {
  33. unsigned long long st_dev;
  34. unsigned long long st_ino;
  35. unsigned int st_mode;
  36. unsigned int st_nlink;
  37. unsigned int st_uid;
  38. unsigned int st_gid;
  39. unsigned long long st_rdev;
  40. unsigned char __pad3[8];
  41. long long st_size;
  42. unsigned int st_blksize;
  43. unsigned char __pad4[8];
  44. unsigned int st_blocks;
  45. unsigned int st_atime;
  46. unsigned int st_atime_nsec;
  47. unsigned int st_mtime;
  48. unsigned int st_mtime_nsec;
  49. unsigned int st_ctime;
  50. unsigned int st_ctime_nsec;
  51. unsigned int __unused4;
  52. unsigned int __unused5;
  53. };
  54. #endif /* _BITS_STAT_STRUCT_H */