kernel_stat.h 771 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Ripped from linux/include/asm-x86_64/stat.h
  2. * and renamed 'struct stat' to 'struct kernel_stat' */
  3. #ifndef _ASM_X86_64_STAT_H
  4. #define _ASM_X86_64_STAT_H
  5. #ifndef _LIBC
  6. #error bits/kernel_stat.h is for internal uClibc use only!
  7. #endif
  8. struct kernel_stat {
  9. unsigned long st_dev;
  10. unsigned long st_ino;
  11. unsigned long st_nlink;
  12. unsigned int st_mode;
  13. unsigned int st_uid;
  14. unsigned int st_gid;
  15. unsigned int __pad0;
  16. unsigned long st_rdev;
  17. long st_size;
  18. long st_blksize;
  19. long st_blocks; /* Number 512-byte blocks allocated. */
  20. struct timespec st_atim;
  21. struct timespec st_mtim;
  22. struct timespec st_ctim;
  23. long __unused[3];
  24. };
  25. /* x86-64 stat64 is same as stat */
  26. #define kernel_stat64 kernel_stat
  27. #endif