kernel_stat.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Ripped from linux/include/asm-ia64/stat.h
  2. * and renamed 'struct stat' to 'struct kernel_stat' */
  3. #ifndef _ASM_IA64_STAT_H
  4. #define _ASM_IA64_STAT_H
  5. #ifndef _LIBC
  6. #error bits/kernel_stat.h is for internal uClibc use only!
  7. #endif
  8. /*
  9. * Modified 1998, 1999
  10. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  11. */
  12. struct kernel_stat {
  13. unsigned long st_dev;
  14. unsigned long st_ino;
  15. unsigned long st_nlink;
  16. unsigned int st_mode;
  17. unsigned int st_uid;
  18. unsigned int st_gid;
  19. unsigned int __pad0;
  20. unsigned long st_rdev;
  21. unsigned long st_size;
  22. unsigned long st_atime;
  23. unsigned long st_atime_nsec;
  24. unsigned long st_mtime;
  25. unsigned long st_mtime_nsec;
  26. unsigned long st_ctime;
  27. unsigned long st_ctime_nsec;
  28. unsigned long st_blksize;
  29. long st_blocks;
  30. unsigned long __unused[3];
  31. };
  32. #define STAT_HAVE_NSEC 1
  33. struct __old_kernel_stat {
  34. unsigned int st_dev;
  35. unsigned int st_ino;
  36. unsigned int st_mode;
  37. unsigned int st_nlink;
  38. unsigned int st_uid;
  39. unsigned int st_gid;
  40. unsigned int st_rdev;
  41. unsigned int __pad1;
  42. unsigned long st_size;
  43. unsigned long st_atime;
  44. unsigned long st_mtime;
  45. unsigned long st_ctime;
  46. unsigned int st_blksize;
  47. int st_blocks;
  48. unsigned int __unused1;
  49. unsigned int __unused2;
  50. };
  51. /* ia64 stat64 is same as stat */
  52. #define kernel_stat64 kernel_stat
  53. #endif /* _ASM_IA64_STAT_H */