From 9c738a57b88712ed87e69bcb3ec657773fa159ce Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Fri, 19 Feb 2010 02:51:32 -0800 Subject: update kernel-features.h with futex features Signed-off-by: Austin Foxley --- libc/sysdeps/linux/common/bits/kernel-features.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/bits/kernel-features.h b/libc/sysdeps/linux/common/bits/kernel-features.h index db0a6d8d9..8481f0640 100644 --- a/libc/sysdeps/linux/common/bits/kernel-features.h +++ b/libc/sysdeps/linux/common/bits/kernel-features.h @@ -448,3 +448,20 @@ #if __LINUX_KERNEL_VERSION >= 0x020609 && defined __alpha__ #define __ASSUME_IEEE_RAISE_EXCEPTION 1 #endif + +/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29. */ +#if __LINUX_KERNEL_VERSION >= 0x02061d +# define __ASSUME_FUTEX_CLOCK_REALTIME 1 +#endif + +/* Support for PI futexes was added in 2.6.18. */ +#if __LINUX_KERNEL_VERSION >= 0x020612 +# define __ASSUME_FUTEX_LOCK_PI 1 +#endif + +/* Support for private futexes was added in 2.6.22. */ +#if __LINUX_KERNEL_VERSION >= 0x020616 +# define __ASSUME_PRIVATE_FUTEX 1 +#endif + + -- cgit v1.2.3