This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 1/2] kernel-features: fix accept4 kernel versions
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: libc-alpha at sourceware dot org
- Cc: Aurelien Jarno <aurelien at aurel32 dot net>, Ryan S Arnold <rsa at linux dot vnet dot ibm dot com>, Steven Munroe <munroesj at linux dot vnet dot ibm dot com>, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>, Martin Schwidefsky <schwidefsky at de dot ibm dot com>
- Date: Sun, 1 Dec 2013 13:20:04 +0100
- Subject: [PATCH 1/2] kernel-features: fix accept4 kernel versions
- Authentication-results: sourceware.org; auth=none
accept4 has been added for
- x86/x86-64 in 2.6.28 (commit de11defebf00007677fb7ee91d9b089b78786fbb)
- sparc in 2.6.28 (commit f8b2256e9c11a825899345de06b39a4bdf44911d)
- powerpc in 2.6.37 (commit 86250b9d12caa1a3dee12a7cf638b7dd70eaadb6)
It has not been added on s390, the syscall number doesn't exist.
---
sysdeps/unix/sysv/linux/kernel-features.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
2013-12-01 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ACCEPT4): Change
minimal version from 2.6.28 to 2.6.37 for PPC. Do not define for s390.
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index ccd4c59..5a9bc89 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -164,10 +164,11 @@
# define __ASSUME_DUP3 1
#endif
-/* Support for the accept4 syscall was added in 2.6.28. */
-#if __LINUX_KERNEL_VERSION >= 0x02061c \
- && (defined __i386__ || defined __x86_64__ || defined __powerpc__ \
- || defined __sparc__ || defined __s390__)
+/* Support for the accept4 syscall was added in 2.6.28 for x86, x86-64 and
+ SPARC, and in 2.6.37 for PPC. */
+#if (__LINUX_KERNEL_VERSION >= 0x02061c \
+ && (defined __i386__ || defined __x86_64__ || defined __sparc__)) \
+ || (__LINUX_KERNEL_VERSION >= 0x020625 && defined __powerpc__)
# define __ASSUME_ACCEPT4 1
#endif
--
1.8.4.2