aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-01-27 23:40:48 +0000
committerGeoff Keating <geoffk@cygnus.com>2000-01-27 23:40:48 +0000
commit053cc7bbc8ff66ab81f3e1d3ed89900785acd06f (patch)
treed5d6ce348e80d3b21d8040f822b1ed1e624c86f6 /sysdeps/unix/sysv/linux/kernel-features.h
parentc1ed883ffc734abd578fe13eaa74998746fb4454 (diff)
downloadglibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar.gz
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.tar.bz2
glibc-053cc7bbc8ff66ab81f3e1d3ed89900785acd06f.zip
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL, __ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >= 2.3.35. * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file. * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64, s_truncate64. * sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/Versions: New file. * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access __curbrk off the small data area register. Reported by Andrew Haley <aph@pasanda.cygnus.co.uk>. 2000-01-27 Geoff Keating <geoffk@cygnus.com> * csu/Makefile ($(objpfx)version-info.h): Don't use echo -n unnecessarily. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL, __ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >= 2.3.35. * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file. * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file. * sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64, s_truncate64. * sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file. * sysdeps/unix/sysv/linux/powerpc/Versions: New file. * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access __curbrk off the small data area register. Reported by Andrew Haley <aph@pasanda.cygnus.co.uk>.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 626b116242..b799a33cb9 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -103,6 +103,13 @@
# define __ASSUME_STAT64_SYSCALL 1
#endif
+/* I know for sure that these are in 2.3.35 on powerpc. */
+#if __LINUX_KERNEL_VERSION >= 131875 && defined __powerpc__
+# define __ASSUME_TRUNCATE64_SYSCALL 1
+# define __ASSUME_STAT64_SYSCALL 1
+# define __ASSUME_NEW_GETRLIMIT_SYSCALL 1
+#endif
+
/* Linux 2.3.39 introduced 32bit UID/GIDs. */
#if __LINUX_KERNEL_VERSION >= 131879
# define __ASSUME_32BITUIDS 1