kernel_stat.h 1.8 KB

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