]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove __ASSUME_CLONE_THREAD_FLAGS.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 14 Aug 2012 22:34:04 +0000 (22:34 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 14 Aug 2012 22:34:04 +0000 (22:34 +0000)
ChangeLog
ports/ChangeLog.ia64
ports/ChangeLog.tile
ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h
ports/sysdeps/unix/sysv/linux/ia64/system.c
ports/sysdeps/unix/sysv/linux/tile/kernel-features.h
sysdeps/unix/sysv/linux/kernel-features.h
sysdeps/unix/sysv/linux/s390/system.c
sysdeps/unix/sysv/linux/sparc/system.c
sysdeps/unix/sysv/linux/system.c

index a9481f33363707761a81f6cc91c671bc9d55c166..b890bcf01336efbca1794187fe3283013d6698f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-08-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/kernel-features.h
+       (__ASSUME_CLONE_THREAD_FLAGS): Remove.
+       * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
+       unconditionally.
+       * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
+       unconditionally.
+       * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
+       condition on __ASSUME_CLONE_THREAD_FLAGS.
+
 2012-08-14  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/i386/fpu/libm-test-ulps: Update.
index 4d2110d92e5156f53bdfead336b9ef147cb179a6..27b4b7eb4bc05eea2d9ff3ef31de97486547ac61 100644 (file)
@@ -1,3 +1,10 @@
+2012-08-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/ia64/kernel-features.h
+       (__ASSUME_CLONE_THREAD_FLAGS): Remove.
+       * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Define
+       unconditionally.
+
 2012-08-12  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/ia64/configure.in: Remove TLS check.
index 164a7e6105ac4f3d36cd626571b23838ded1cbb9..53afc6987fe03f3fd7a44ce22c2eef8086025a68 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/tile/kernel-features.h
+       (__ASSUME_CLONE_THREAD_FLAGS): Remove.
+
 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/tile/kernel-features.h
index 061a86df5ad3b3638bf9fb2c3550f12900b4ec07..bd3e37777d187e91ca34edc8e579a24ad9540f69 100644 (file)
 #ifndef _KERNEL_FEATURES_H
 #define _KERNEL_FEATURES_H 1
 
-/* The late 2.5 kernels saw a lot of new CLONE_* flags.  Summarize
-   their availability with one define.  */
-#define __ASSUME_CLONE_THREAD_FLAGS   1
-
 /* The utimes syscall has been available for some architectures
    forever.  */
 #define __ASSUME_UTIMES        1
index f02a99e9eb88558c0f888f61ef7c0d8a05ed39bf..6970a1f89922b6d399bd34b609d617f5b4e0f042 100644 (file)
    return.  It might still be in the kernel when the cancellation
    request comes.  Therefore we have to use the clone() calls ability
    to have the kernel write the PID into the user-level variable.  */
-#ifdef __ASSUME_CLONE_THREAD_FLAGS
-# define FORK() \
+#define FORK() \
   INLINE_SYSCALL (clone2, 6, CLONE_PARENT_SETTID | SIGCHLD, NULL, 0, \
                  &pid, NULL, NULL)
-#endif
 
 #include <sysdeps/unix/sysv/linux/system.c>
index 3c00344d05c83b90728f1b8b36633c3ce6ab8fa1..956f14cb9944d082feea255c460749aecd043436 100644 (file)
@@ -20,7 +20,6 @@
 /* TILE glibc support starts with 2.6.36, guaranteeing many kernel features. */
 #define __ASSUME_MMAP2_SYSCALL         1
 #define __ASSUME_STAT64_SYSCALL                1
-#define __ASSUME_CLONE_THREAD_FLAGS    1
 #define __ASSUME_UTIMES                        1
 #define __ASSUME_FADVISE64_64_SYSCALL  1
 #define __ASSUME_O_CLOEXEC             1
index bf81c4a07f76f0c38bd5e9c68b35a19ef0b269d9..0aa01c95ba9dcdbf714703cb919c8e820231ff9b 100644 (file)
 # define __ASSUME_MMAP2_SYSCALL                1
 #endif
 
-/* The late 2.5 kernels saw a lot of new CLONE_* flags.  Summarize
-   their availability with one define.  The changes were made first
-   for i386 and the have to be done separately for the other archs.
-   For i386 we pick 2.5.50 as the first version with support.
-   For s390*, SPARC, PPC, x86-64, and SH we pick 2.5.64 as the first
-   version with support.  */
-#if (defined __i386__ || defined __s390__ || defined __sparc__         \
-     || defined __powerpc__ || defined __x86_64__ || defined __sh__)
-# define __ASSUME_CLONE_THREAD_FLAGS   1
-#endif
-
 /* Beginning with 2.5.63 support for realtime and monotonic clocks and
    timers based on them is available.  */
 #define __ASSUME_POSIX_TIMERS          1
index f63584c26bbe48b2f2953f11819b08e211ec454e..66f96617eb6ca8c285cb1aec2c80bdc5e24a5e03 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 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
@@ -25,9 +25,7 @@
    return.  It might still be in the kernel when the cancellation
    request comes.  Therefore we have to use the clone() calls ability
    to have the kernel write the PID into the user-level variable.  */
-#ifdef __ASSUME_CLONE_THREAD_FLAGS
-# define FORK() \
+#define FORK() \
   INLINE_SYSCALL (clone, 3, 0, CLONE_PARENT_SETTID | SIGCHLD, &pid)
-#endif
 
 #include "../system.c"
index 314909199566fbba41a6185769b1d61c6f455383..a5e34dcdd5204de587f8ae0cb808bdbf92b96876 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 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
@@ -25,9 +25,7 @@
    return.  It might still be in the kernel when the cancellation
    request comes.  Therefore we have to use the clone() calls ability
    to have the kernel write the PID into the user-level variable.  */
-#ifdef __ASSUME_CLONE_THREAD_FLAGS
-# define FORK() \
+#define FORK() \
   INLINE_CLONE_SYSCALL (CLONE_PARENT_SETTID | SIGCHLD, 0, &pid, NULL, NULL)
-#endif
 
 #include "../system.c"
index 4604544e649f9584ce3680200b220900cc2dddc9..29ab63ec53ee63b1225775c3a96695c91b57a2f3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 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
@@ -32,7 +32,7 @@
    return.  It might still be in the kernel when the cancellation
    request comes.  Therefore we have to use the clone() calls ability
    to have the kernel write the PID into the user-level variable.  */
-#if defined __ASSUME_CLONE_THREAD_FLAGS && !defined FORK
+#ifndef FORK
 # define FORK() \
   INLINE_SYSCALL (clone, 3, CLONE_PARENT_SETTID | SIGCHLD, 0, &pid)
 #endif