statfix.h 631 B

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