about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-02 01:01:03 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-02 01:01:03 +0000
commitecda4bdaa1835e9a7865667690e3e264c25085e6 (patch)
tree0bb8e01f14c5698b6828f7f4551ff1e26823f18a
parentbebb184e55321623f1f93bcce7af0d092f536bfb (diff)
downloadglibc-ecda4bdaa1835e9a7865667690e3e264c25085e6.tar.gz
glibc-ecda4bdaa1835e9a7865667690e3e264c25085e6.tar.xz
glibc-ecda4bdaa1835e9a7865667690e3e264c25085e6.zip
Update.
	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_NEW_GETRLIMIT_SYSCALL): New definition.
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7e643008c2..eafb209f27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
 	* sysdeps/unix/sysv/linux/net/if_arp.h: Add ARPHDR_HWX25.
 
+	* sysdeps/unix/sysv/linux/kernel-features.h
+	(__ASSUME_NEW_GETRLIMIT_SYSCALL): New definition.
 	* sysdeps/unix/sysv/linux/i386/getrlimit.c: New file.
 
 	* manual/texinfo.tex: Updated.
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index db2bfe24d5..f01f2ddaca 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -74,3 +74,8 @@
 #if __LINUX_KERNEL_VERSION >= 131408
 # define __ASSUME_SIOCGIFNAME		1
 #endif
+
+/* On x86 another `getrlimit' syscall was added in 2.3.25.  */
+#if __LINUX_KERNEL_VERSION >= 131865 && defined __i386__
+# define __ASSUME_NEW_GETRLIMIT_SYSCALL	1
+#endif