1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
This commit is contained in:
Ulrich Drepper
2004-01-21 01:30:36 +00:00
parent 29f68d607a
commit f3484f2791
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2004-01-20 Ulrich Drepper <drepper@redhat.com> 2004-01-20 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
* catgets/Makefile ($(objpfx)de.msg): Run sed in C locale. * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
* sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t

View File

@ -1,6 +1,6 @@
/* Set flags signalling availability of kernel features based on given /* Set flags signalling availability of kernel features based on given
kernel version number. 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -380,9 +380,15 @@
# define __ASSUME_PROT_GROWSUPDOWN 1 # define __ASSUME_PROT_GROWSUPDOWN 1
#endif #endif
/* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector /* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector
SIMD (AKA Altivec, VMX) instructions and register state. This changes SIMD (AKA Altivec, VMX) instructions and register state. This changes
the overall size of the sigcontext and adds the swapcontext syscall. */ 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 # define __ASSUME_SWAPCONTEXT_SYSCALL 1
#endif #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