kernel_stat.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Taken from linux/include/asm-cris/stat.h */
  2. #ifndef _CRIS_STAT_H
  3. #define _CRIS_STAT_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. /* This matches struct kernel_stat64 in glibc2.1, hence the absolutely
  27. * insane amounts of padding around dev_t's.
  28. */
  29. struct kernel_stat64 {
  30. unsigned short st_dev;
  31. unsigned char __pad0[10];
  32. #define _HAVE_STAT64___ST_INO
  33. unsigned long __st_ino;
  34. unsigned int st_mode;
  35. unsigned int st_nlink;
  36. unsigned long st_uid;
  37. unsigned long st_gid;
  38. unsigned short st_rdev;
  39. unsigned char __pad3[10];
  40. long long st_size;
  41. unsigned long st_blksize;
  42. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  43. unsigned long __pad4; /* future possible st_blocks high bits */
  44. struct timespec st_atim;
  45. struct timespec st_mtim;
  46. struct timespec st_ctim;
  47. unsigned long long st_ino;
  48. };
  49. #endif