* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):

Only define for 2.6.12+ on s390{,x}.
	(__ASSUME_GETDENTS32_D_TYPE): Only define for 2.6.8+ on most arches
	and only for 2.6.11+ on s390{,x}.
This commit is contained in:
Ulrich Drepper 2006-01-06 07:30:36 +00:00
parent b957e86420
commit e7ebabedca
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2006-01-05 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
Only define for 2.6.12+ on s390{,x}.
(__ASSUME_GETDENTS32_D_TYPE): Only define for 2.6.8+ on most arches
and only for 2.6.11+ on s390{,x}.
2006-01-05 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/aio_misc.h [!DONT_USE_BOOTSTRAP_MAP]

View File

@ -1,6 +1,6 @@
/* Set flags signalling availability of kernel features based on given
kernel version number.
Copyright (C) 1999-2003, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1999-2003, 2004, 2005, 2006 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
@ -423,8 +423,10 @@
#endif
/* Starting with version 2.6.4-rc1 the getdents syscall returns d_type
information as well. */
#if __LINUX_KERNEL_VERSION >= 132612
information as well and in between 2.6.5 and 2.6.8 most compat wrappers
were fixed too. Except s390{,x} which was fixed in 2.6.11. */
#if (__LINUX_KERNEL_VERSION >= 0x020608 && !defined __s390__) \
|| (__LINUX_KERNEL_VERSION >= 0x02060b && defined __s390__)
# define __ASSUME_GETDENTS32_D_TYPE 1
#endif
@ -435,9 +437,11 @@
#endif
/* Starting with version 2.6.9, the waitid system call is available.
Except for powerpc and powerpc64, where it is available in 2.6.12. */
#if (__LINUX_KERNEL_VERSION >= 0x020609 && !defined __powerpc__) \
|| (__LINUX_KERNEL_VERSION >= 0x02060c && defined __powerpc__)
Except for powerpc{,64} and s390{,x}, where it is available in 2.6.12. */
#if (__LINUX_KERNEL_VERSION >= 0x020609 \
&& !defined __powerpc__ && !defined __s390__) \
|| (__LINUX_KERNEL_VERSION >= 0x02060c \
&& (defined __powerpc__ || defined __s390__))
# define __ASSUME_WAITID_SYSCALL 1
#endif