summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/statfix64.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-19 18:04:25 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-19 18:04:25 +0000
commit3fec316902712c8a7546405852fa50a0aa39d4f6 (patch)
tree250fe9428f45f686c401f22ff96b9e9a0d2a7436 /libc/sysdeps/linux/common/statfix64.h
parentbfefdc65657e145a0e05886ec571e0ee6af1a290 (diff)
Eliminate wrapping of struct stat and use the kernel version
directly. Eliminate all the attendant baggage. Fix internal types to match kernel types more closely. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/statfix64.h')
-rw-r--r--libc/sysdeps/linux/common/statfix64.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/libc/sysdeps/linux/common/statfix64.h b/libc/sysdeps/linux/common/statfix64.h
deleted file mode 100644
index 415829f67..000000000
--- a/libc/sysdeps/linux/common/statfix64.h
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef STATFIX_H
-#define STATFIX_H
-
-#include <features.h>
-#undef __OPTIMIZE__
-#include <sys/types.h>
-#include <bits/wordsize.h>
-
-#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
-#undef _FILE_OFFSET_BITS
-#define _FILE_OFFSET_BITS 64
-#endif
-#ifndef __USE_LARGEFILE64
-# define __USE_LARGEFILE64 1
-#endif
-/* We absolutely do _NOT_ want interfaces silently
- * * * renamed under us or very bad things will happen... */
-#ifdef __USE_FILE_OFFSET64
-# undef __USE_FILE_OFFSET64
-#endif
-
-#if defined __UCLIBC_HAVE_LFS__
-#if defined __WORDSIZE && (__WORDSIZE >= 64)
-
-/* 64 bit arch stuff... */
-
-/* Pull in whatever this particular arch's kernel thinks the kernel version of
- * * struct stat should look like. It turns out that each arch has a different
- * * opinion on the subject, and different kernel revs use different names... */
-#define stat kernel_stat64
-#define new_stat kernel_stat64
-#define stat64 kernel_stat64
-#define kernel_stat kernel_stat64
-#include <asm/stat.h>
-#undef stat64
-#undef new_stat
-#undef stat
-
-
-/* Now pull in libc's version of stat */
-#define stat libc_stat
-#define stat64 libc_stat64
-#define _SYS_STAT_H
-#include <bits/stat.h>
-#undef stat64
-#undef stat
-
-extern void __statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat);
-extern int __fxstat64(int version, int fd, struct libc_stat64 * statbuf);
-
-#else
-
-/* 32 bit arch stuff */
-
-
-/* Pull in whatever this particular arch's kernel thinks the kernel version of
- * * struct stat should look like. It turns out that each arch has a different
- * * opinion on the subject, and different kernel revs use different names... */
-#define stat kernel_stat
-#define new_stat kernel_stat
-#define stat64 kernel_stat64
-#include <asm/stat.h>
-#undef stat64
-#undef new_stat
-#undef stat
-
-/* Now pull in libc's version of stat */
-#define stat libc_stat
-#define stat64 libc_stat64
-#define _SYS_STAT_H
-#include <bits/stat.h>
-#undef stat64
-#undef stat
-
-extern void __statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat);
-extern int __fxstat64(int version, int fd, struct libc_stat64 * statbuf);
-
-
-#endif /* __WORDSIZE */
-#endif /* __UCLIBC_HAVE_LFS__ */
-
-#endif