summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-15 04:12:19 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-15 04:12:19 -0500
commitcfe373146d232d7c89a60920f77b9451bcfee96b (patch)
treedb859ab013e3db10f1f75950100f013a7c4e829e /arch
parenta5bf06c035168122725ec32537f99ab1e6c8432c (diff)
downloadmusl-cfe373146d232d7c89a60920f77b9451bcfee96b.tar.gz
musl-cfe373146d232d7c89a60920f77b9451bcfee96b.tar.bz2
musl-cfe373146d232d7c89a60920f77b9451bcfee96b.tar.xz
musl-cfe373146d232d7c89a60920f77b9451bcfee96b.zip
finish moving 32-bit-specific junk out of source files.
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/syscall.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/i386/syscall.h b/arch/i386/syscall.h
index 901263ba..114aa688 100644
--- a/arch/i386/syscall.h
+++ b/arch/i386/syscall.h
@@ -480,6 +480,29 @@ static inline long syscall6(long n, long a1, long a2, long a3, long a4, long a5,
#define __NR_setfsgid __NR_setfsgid32
+/* fixup legacy 32-bit-vs-lfs64 junk */
+#undef __NR_getdents
+#undef __NR_ftruncate
+#undef __NR_truncate
+#undef __NR_stat
+#undef __NR_fstat
+#undef __NR_lstat
+#undef __NR_statfs
+#undef __NR_fstatfs
+#define __NR_getdents __NR_getdents64
+#define __NR_ftruncate __NR_ftruncate64
+#define __NR_truncate __NR_truncate64
+#define __NR_stat __NR_stat64
+#define __NR_fstat __NR_fstat64
+#define __NR_lstat __NR_lstat64
+#define __NR_statfs __NR_statfs64
+#define __NR_fstatfs __NR_fstatfs64
+#define __NR_fstatat __NR_fstatat64
+#define __NR_pread __NR_pread64
+#define __NR_pwrite __NR_pwrite64
+
+
+
#undef O_LARGEFILE
#define O_LARGEFILE 0100000