about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-01-21 01:30:36 +0000
committerUlrich Drepper <drepper@redhat.com>2004-01-21 01:30:36 +0000
commitf3484f2791a24f1aa5127addd51042520a9aecae (patch)
treed2bfecb22972ba27f3b1dbd5495170e0fbb6f7dc /sysdeps
parent29f68d607abc2fbfe4e125242db422ac827cf4ff (diff)
downloadglibc-f3484f2791a24f1aa5127addd51042520a9aecae.tar.gz
glibc-f3484f2791a24f1aa5127addd51042520a9aecae.tar.xz
glibc-f3484f2791a24f1aa5127addd51042520a9aecae.zip
Update
	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 43e95dfee4..0f35a3ccc3 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -1,6 +1,6 @@
 /* Set flags signalling availability of kernel features based on given
    kernel version number.
-   Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1999-2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -380,9 +380,15 @@
 # define __ASSUME_PROT_GROWSUPDOWN	1
 #endif
 
-/* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector 
-   SIMD (AKA Altivec, VMX) instructions and register state.  This changes 
+/* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector
+   SIMD (AKA Altivec, VMX) instructions and register state.  This changes
    the overall size of the sigcontext and adds the swapcontext syscall.  */
-#if __LINUX_KERNEL_VERSION >= (132608) && defined __powerpc__
+#if __LINUX_KERNEL_VERSION >= 132608 && defined __powerpc__
 # define __ASSUME_SWAPCONTEXT_SYSCALL		1
 #endif
+
+/* The CLONE_DETACHED flag is not necessary in 2.6.2 kernels, it is
+   implied.  */
+#if __LINUX_KERNEL_VERSION >= 132610
+# define __ASSUME_NO_CLONE_DETACHED		1
+#endif