kernel_stat.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. unsigned long st_atime;
  21. unsigned long __unused1;
  22. unsigned long st_mtime;
  23. unsigned long __unused2;
  24. unsigned long st_ctime;
  25. unsigned long __unused3;
  26. unsigned long __unused4;
  27. unsigned long __unused5;
  28. };
  29. struct kernel_stat64 {
  30. unsigned short st_dev;
  31. unsigned char __pad0[10];
  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. unsigned long st_atime;
  44. unsigned long __pad5;
  45. unsigned long st_mtime;
  46. unsigned long __pad6;
  47. unsigned long st_ctime;
  48. unsigned long __pad7; /* will be high 32 bits of ctime someday */
  49. unsigned long __unused1;
  50. unsigned long __unused2;
  51. };
  52. #endif /* _BITS_STAT_STRUCT_H */