kernel_stat.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /* This file provides whatever this particular arch's kernel thinks
  7. * struct kernel_stat should look like... It turns out each arch has a
  8. * different opinion on the subject... */
  9. #define STAT_HAVE_NSEC 1
  10. struct kernel_stat {
  11. unsigned long st_dev;
  12. unsigned long st_ino;
  13. unsigned int st_mode;
  14. unsigned int st_nlink;
  15. unsigned int st_uid;
  16. unsigned int st_gid;
  17. unsigned long st_rdev;
  18. 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. struct kernel_stat64 {
  31. unsigned long long st_dev; /* Device */
  32. unsigned long long st_ino; /* File serial number */
  33. unsigned int st_mode; /* File mode. */
  34. unsigned int st_nlink; /* Link count. */
  35. unsigned int st_uid; /* User ID of the file's owner. */
  36. unsigned int st_gid; /* Group ID of the file's group. */
  37. unsigned long long st_rdev; /* Device number, if device. */
  38. long long st_size; /* Size of file, in bytes. */
  39. unsigned long st_blksize; /* Optimal block size for I/O. */
  40. unsigned long __unused2;
  41. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  42. unsigned long st_atime; /* Time of last access. */
  43. unsigned long st_atime_nsec;
  44. unsigned long st_mtime; /* Time of last modification. */
  45. unsigned long st_mtime_nsec;
  46. unsigned long st_ctime; /* Time of last status change. */
  47. unsigned long st_ctime_nsec;
  48. unsigned long __unused4;
  49. unsigned long __unused5;
  50. };
  51. #endif /* _BITS_STAT_STRUCT_H */