This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/2] kernel-features: fix accept4 kernel versions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]