kernel_stat.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Stat structure for Linux/sh64 */
  2. #ifndef _BITS_STAT_STRUCT_H
  3. #define _BITS_STAT_STRUCT_H
  4. #ifndef _LIBC
  5. #error bits/kernel_stat.h is for internal uClibc use only!
  6. #endif
  7. struct kernel_stat {
  8. unsigned short st_dev;
  9. unsigned short __pad1;
  10. unsigned long st_ino;
  11. unsigned short st_mode;
  12. unsigned short st_nlink;
  13. unsigned short st_uid;
  14. unsigned short st_gid;
  15. unsigned short st_rdev;
  16. unsigned short __pad2;
  17. unsigned long st_size;
  18. unsigned long st_blksize;
  19. unsigned long st_blocks;
  20. struct timespec st_atim;
  21. struct timespec st_mtim;
  22. struct timespec st_ctim;
  23. unsigned long __unused4;
  24. unsigned long __unused5;
  25. };
  26. struct kernel_stat64 {
  27. unsigned short st_dev;
  28. unsigned char __pad0[10];
  29. unsigned 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 short st_rdev;
  35. unsigned char __pad3[10];
  36. long long st_size;
  37. unsigned long st_blksize;
  38. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  39. unsigned long __pad4; /* future possible st_blocks high bits */
  40. struct timespec st_atim;
  41. struct timespec st_mtim;
  42. struct timespec st_ctim;
  43. unsigned long __unused1;
  44. unsigned long __unused2;
  45. };
  46. #endif /* _BITS_STAT_STRUCT_H */