statfix.h 657 B

123456789101112131415161718192021222324
  1. #ifndef STATFIX_H
  2. #define STATFIX_H
  3. #include <sys/types.h>
  4. /* Pull in whatever this particular arch's kernel thinks the kernel version of
  5. * struct stat should look like. It turns out that each arch has a different
  6. * opinion on the subject, and different kernel revs use different names... */
  7. #define stat kernel_stat
  8. #define new_stat kernel_stat
  9. #include <asm/stat.h>
  10. #undef new_stat
  11. #undef stat
  12. /* Now pull in libc's version of stat */
  13. #define stat libc_stat
  14. #include <sys/stat.h>
  15. #undef stat
  16. extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);
  17. extern int __fxstat(int version, int fd, struct libc_stat * statbuf);
  18. #endif