From 87108d9ffaa3e4d4bc761453de093011e0d3398d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 29 Oct 2000 05:47:04 +0000 Subject: Fix up stat so we translate from kernel stat to libc stat. Try to fix up a few little things with dir entry reading. busybox now compiles, and seems to basically work... :-) -Erik --- libc/sysdeps/linux/common/statfix.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libc/sysdeps/linux/common/statfix.h (limited to 'libc/sysdeps/linux/common/statfix.h') diff --git a/libc/sysdeps/linux/common/statfix.h b/libc/sysdeps/linux/common/statfix.h new file mode 100644 index 000000000..a4fac1d06 --- /dev/null +++ b/libc/sysdeps/linux/common/statfix.h @@ -0,0 +1,19 @@ +#ifndef STATFIX_H +#define STATFIX_H + +/* Pull in whatever this particular arch's kernel thinks the kernel version of + * struct stat should look like. It turn out that each arch has a different + * opinion on the subject... */ +#define stat kernel_stat +#include +#undef stat + +/* Now pull in libc's version of stat */ +#define stat libc_stat +#include +#undef stat + +extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat); + +#endif + -- cgit v1.2.3