kernel_stat.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Taken from linux/include/asm-cris/stat.h */
  2. #ifndef _BITS_STAT_STRUCT_H
  3. #define _BITS_STAT_STRUCT_H
  4. struct kernel_stat {
  5. unsigned short st_dev;
  6. unsigned short __pad1;
  7. unsigned long st_ino;
  8. unsigned short st_mode;
  9. unsigned short st_nlink;
  10. unsigned short st_uid;
  11. unsigned short st_gid;
  12. unsigned short st_rdev;
  13. unsigned short __pad2;
  14. unsigned long st_size;
  15. unsigned long st_blksize;
  16. unsigned long st_blocks;
  17. struct timespec st_atim;
  18. struct timespec st_mtim;
  19. struct timespec st_ctim;
  20. unsigned long __unused4;
  21. unsigned long __unused5;
  22. };
  23. /* This matches struct kernel_stat64 in glibc2.1, hence the absolutely
  24. * insane amounts of padding around dev_t's.
  25. */
  26. struct kernel_stat64 {
  27. unsigned short st_dev;
  28. unsigned char __pad0[10];
  29. #define _HAVE_STAT64___ST_INO
  30. unsigned long __st_ino;
  31. unsigned int st_mode;
  32. unsigned int st_nlink;
  33. unsigned long st_uid;
  34. unsigned long st_gid;
  35. unsigned short st_rdev;
  36. unsigned char __pad3[10];
  37. long long st_size;
  38. unsigned long st_blksize;
  39. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  40. unsigned long __pad4; /* future possible st_blocks high bits */
  41. struct timespec st_atim;
  42. struct timespec st_mtim;
  43. struct timespec st_ctim;
  44. unsigned long long st_ino;
  45. };
  46. #endif