kernel_stat.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef _BITS_STAT_STRUCT_H
  2. #define _BITS_STAT_STRUCT_H
  3. #ifndef _LIBC
  4. #error bits/kernel_stat.h is for internal uClibc use only!
  5. #endif
  6. /*
  7. * This file provides struct stat, taken from kernel 2.6.4. Verified
  8. * to match kernel 2.6.22.
  9. */
  10. struct kernel_stat {
  11. unsigned long st_dev;
  12. unsigned long st_ino;
  13. unsigned short st_mode;
  14. unsigned short st_nlink;
  15. unsigned short st_uid;
  16. unsigned short st_gid;
  17. unsigned long st_rdev;
  18. unsigned long st_size;
  19. unsigned long st_blksize;
  20. unsigned long st_blocks;
  21. unsigned long st_atime;
  22. unsigned long st_atime_nsec;
  23. unsigned long st_mtime;
  24. unsigned long st_mtime_nsec;
  25. unsigned long st_ctime;
  26. unsigned long st_ctime_nsec;
  27. unsigned long __unused4;
  28. unsigned long __unused5;
  29. };
  30. #define STAT_HAVE_NSEC 1
  31. struct kernel_stat64 {
  32. unsigned long long st_dev;
  33. unsigned long 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 long long st_rdev;
  39. long long st_size;
  40. unsigned long __pad1;
  41. unsigned long st_blksize;
  42. unsigned long long st_blocks;
  43. unsigned long st_atime;
  44. unsigned long st_atime_nsec;
  45. unsigned long st_mtime;
  46. unsigned long st_mtime_nsec;
  47. unsigned long st_ctime;
  48. unsigned long st_ctime_nsec;
  49. unsigned long __unused1;
  50. unsigned long __unused2;
  51. };
  52. #endif /* _BITS_STAT_STRUCT_H */