statfix.h 539 B

1234567891011121314151617181920
  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... */
  6. #define stat kernel_stat
  7. #include <asm/stat.h>
  8. #undef stat
  9. /* Now pull in libc's version of stat */
  10. #define stat libc_stat
  11. #include <sys/stat.h>
  12. #undef stat
  13. extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);
  14. extern int _fxstat(int version, int fd, struct libc_stat * statbuf);
  15. #endif