kernel_stat.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /*
  6. * Modified 1998, 1999
  7. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  8. */
  9. struct kernel_stat {
  10. unsigned long st_dev;
  11. unsigned long st_ino;
  12. unsigned long st_nlink;
  13. unsigned int st_mode;
  14. unsigned int st_uid;
  15. unsigned int st_gid;
  16. unsigned int __pad0;
  17. unsigned long st_rdev;
  18. unsigned long st_size;
  19. unsigned long st_atime;
  20. unsigned long st_atime_nsec;
  21. unsigned long st_mtime;
  22. unsigned long st_mtime_nsec;
  23. unsigned long st_ctime;
  24. unsigned long st_ctime_nsec;
  25. unsigned long st_blksize;
  26. long st_blocks;
  27. unsigned long __unused[3];
  28. };
  29. #define STAT_HAVE_NSEC 1
  30. struct __old_kernel_stat {
  31. unsigned int st_dev;
  32. unsigned int st_ino;
  33. unsigned int st_mode;
  34. unsigned int st_nlink;
  35. unsigned int st_uid;
  36. unsigned int st_gid;
  37. unsigned int st_rdev;
  38. unsigned int __pad1;
  39. unsigned long st_size;
  40. unsigned long st_atime;
  41. unsigned long st_mtime;
  42. unsigned long st_ctime;
  43. unsigned int st_blksize;
  44. int st_blocks;
  45. unsigned int __unused1;
  46. unsigned int __unused2;
  47. };
  48. /* ia64 stat64 is same as stat */
  49. #define kernel_stat64 kernel_stat
  50. #endif /* _ASM_IA64_STAT_H */