kernel_stat.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* Taken from linux/include/asm-cris/stat.h */
  2. #ifndef _CRIS_STAT_H
  3. #define _CRIS_STAT_H
  4. struct __old_kernel_stat {
  5. unsigned short st_dev;
  6. unsigned short st_ino;
  7. unsigned short st_mode;
  8. unsigned short st_nlink;
  9. unsigned short st_uid;
  10. unsigned short st_gid;
  11. unsigned short st_rdev;
  12. unsigned long st_size;
  13. unsigned long st_atime;
  14. unsigned long st_mtime;
  15. unsigned long st_ctime;
  16. };
  17. struct kernel_stat {
  18. unsigned short st_dev;
  19. unsigned short __pad1;
  20. unsigned long st_ino;
  21. unsigned short st_mode;
  22. unsigned short st_nlink;
  23. unsigned short st_uid;
  24. unsigned short st_gid;
  25. unsigned short st_rdev;
  26. unsigned short __pad2;
  27. unsigned long st_size;
  28. unsigned long st_blksize;
  29. unsigned long st_blocks;
  30. unsigned long st_atime;
  31. unsigned long __unused1;
  32. unsigned long st_mtime;
  33. unsigned long __unused2;
  34. unsigned long st_ctime;
  35. unsigned long __unused3;
  36. unsigned long __unused4;
  37. unsigned long __unused5;
  38. };
  39. /* This matches struct kernel_stat64 in glibc2.1, hence the absolutely
  40. * insane amounts of padding around dev_t's.
  41. */
  42. struct kernel_stat64 {
  43. unsigned short st_dev;
  44. unsigned char __pad0[10];
  45. #define _HAVE_STAT64___ST_INO
  46. unsigned long __st_ino;
  47. unsigned int st_mode;
  48. unsigned int st_nlink;
  49. unsigned long st_uid;
  50. unsigned long st_gid;
  51. unsigned short st_rdev;
  52. unsigned char __pad3[10];
  53. long long st_size;
  54. unsigned long st_blksize;
  55. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  56. unsigned long __pad4; /* future possible st_blocks high bits */
  57. unsigned long st_atime;
  58. unsigned long __pad5;
  59. unsigned long st_mtime;
  60. unsigned long __pad6;
  61. unsigned long st_ctime;
  62. unsigned long __pad7; /* will be high 32 bits of ctime someday */
  63. unsigned long long st_ino;
  64. };
  65. #endif