statfix.h 700 B

1234567891011121314151617181920212223242526
  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. #define stat64 kernel_stat64
  10. #include <asm/stat.h>
  11. #undef stat64
  12. #undef new_stat
  13. #undef stat
  14. /* Now pull in libc's version of stat */
  15. #define stat libc_stat
  16. #include <sys/stat.h>
  17. #undef stat
  18. extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);
  19. extern int __fxstat(int version, int fd, struct libc_stat * statbuf);
  20. #endif