Blame SOURCES/glibc-rh1256317-6.patch

147e83
commit ce9f10f7f0cc83df3e307a18e480587c3b404321
147e83
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
147e83
Date:   Thu Nov 20 14:22:40 2014 +0530
147e83
147e83
    Remove IS_IN_libpthread
147e83
    
147e83
    Replace with IS_IN (libpthread).  Generated code unchanged on
147e83
    x86_64.
147e83
    
147e83
    	* nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
147e83
    	* nptl/pthreadP.h: Likewise.
147e83
    	* nptl_db/structs.def: Likewise.
147e83
    	* sysdeps/arm/sysdep.h: Likewise.
147e83
    	* sysdeps/nptl/bits/libc-lock.h: Likewise.
147e83
    	* sysdeps/nptl/bits/libc-lockP.h: Likewise.
147e83
    	* sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
147e83
    	* sysdeps/unix/alpha/sysdep.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
147e83
    	* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
147e83
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
147e83
@@ -37,7 +37,7 @@ __lll_lock_wait_private (int *futex)
147e83
 
147e83
 
147e83
 /* These functions don't get included in libc.so  */
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 void
147e83
 __lll_lock_wait (int *futex, int private)
147e83
 {
147e83
Index: glibc-2.17-c758a686/nptl/pthreadP.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/pthreadP.h
147e83
+++ glibc-2.17-c758a686/nptl/pthreadP.h
147e83
@@ -225,7 +225,7 @@ extern int __pthread_debug attribute_hid
147e83
 
147e83
 extern void __pthread_unwind (__pthread_unwind_buf_t *__buf)
147e83
      __cleanup_fct_attribute __attribute ((__noreturn__))
147e83
-#if !defined SHARED && !defined IS_IN_libpthread
147e83
+#if !defined SHARED && !IS_IN (libpthread)
147e83
      weak_function
147e83
 #endif
147e83
      ;
147e83
@@ -239,7 +239,7 @@ extern void __pthread_register_cancel (_
147e83
      __cleanup_fct_attribute;
147e83
 extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
147e83
      __cleanup_fct_attribute;
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 hidden_proto (__pthread_unwind)
147e83
 hidden_proto (__pthread_unwind_next)
147e83
 hidden_proto (__pthread_register_cancel)
147e83
@@ -283,7 +283,7 @@ __do_cancel (void)
147e83
 # define LIBC_CANCEL_HANDLED() \
147e83
   __asm (".globl " __SYMBOL_PREFIX "__libc_enable_asynccancel"); \
147e83
   __asm (".globl " __SYMBOL_PREFIX "__libc_disable_asynccancel")
147e83
-#elif defined IS_IN_libpthread
147e83
+#elif IS_IN (libpthread)
147e83
 # define LIBC_CANCEL_ASYNC() CANCEL_ASYNC ()
147e83
 # define LIBC_CANCEL_RESET(val) CANCEL_RESET (val)
147e83
 # define LIBC_CANCEL_HANDLED() \
147e83
@@ -344,7 +344,7 @@ extern int __make_stacks_executable (voi
147e83
 
147e83
 /* longjmp handling.  */
147e83
 extern void __pthread_cleanup_upto (__jmp_buf target, char *targetframe);
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 hidden_proto (__pthread_cleanup_upto)
147e83
 #endif
147e83
 
147e83
@@ -489,7 +489,7 @@ extern int __pthread_enable_asynccancel
147e83
 extern void __pthread_disable_asynccancel (int oldtype)
147e83
      internal_function attribute_hidden;
147e83
 
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 hidden_proto (__pthread_mutex_init)
147e83
 hidden_proto (__pthread_mutex_destroy)
147e83
 hidden_proto (__pthread_mutex_lock)
147e83
@@ -528,7 +528,7 @@ extern int __librt_enable_asynccancel (v
147e83
 extern void __librt_disable_asynccancel (int oldtype)
147e83
      internal_function attribute_hidden;
147e83
 
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 /* Special versions which use non-exported functions.  */
147e83
 extern void __pthread_cleanup_push (struct _pthread_cleanup_buffer *buffer,
147e83
 				    void (*routine) (void *), void *arg)
147e83
Index: glibc-2.17-c758a686/nptl_db/structs.def
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl_db/structs.def
147e83
+++ glibc-2.17-c758a686/nptl_db/structs.def
147e83
@@ -31,7 +31,7 @@
147e83
 #endif
147e83
 
147e83
 #ifndef DB_RTLD_GLOBAL_FIELD
147e83
-# if !defined IS_IN_libpthread
147e83
+# if !IS_IN (libpthread)
147e83
 #  define DB_RTLD_GLOBAL_FIELD(field)		\
147e83
   DB_STRUCT_FIELD (rtld_global, _##field)	\
147e83
   DB_MAIN_VARIABLE (_##field)
147e83
@@ -98,11 +98,11 @@ DB_STRUCT_ARRAY_FIELD (dtv, dtv)
147e83
 #define pointer_val pointer.val /* Field of anonymous struct in dtv_t.  */
147e83
 DB_STRUCT_FIELD (dtv_t, pointer_val)
147e83
 DB_STRUCT_FIELD (dtv_t, counter)
147e83
-#if !defined IS_IN_libpthread || TLS_TCB_AT_TP
147e83
+#if !IS_IN (libpthread) || TLS_TCB_AT_TP
147e83
 DB_STRUCT_FIELD (pthread, dtvp)
147e83
 #endif
147e83
 
147e83
-#if !(defined IS_IN_libpthread && !defined SHARED)
147e83
+#if !(IS_IN (libpthread) && !defined SHARED)
147e83
 DB_STRUCT (rtld_global)
147e83
 DB_RTLD_VARIABLE (_rtld_global)
147e83
 #endif
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/pthread/bits/libc-lock.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/pthread/bits/libc-lock.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/pthread/bits/libc-lock.h
147e83
@@ -26,7 +26,7 @@
147e83
 
147e83
 /* Mutex type.  */
147e83
 #if defined _LIBC || defined _IO_MTSAFE_IO
147e83
-# if (defined NOT_IN_libc && !defined IS_IN_libpthread) || !defined _LIBC
147e83
+# if (defined NOT_IN_libc && !IS_IN (libpthread)) || !defined _LIBC
147e83
 typedef struct { pthread_mutex_t mutex; } __libc_lock_recursive_t;
147e83
 # else
147e83
 typedef struct { int lock; int cnt; void *owner; } __libc_lock_recursive_t;
147e83
@@ -47,7 +47,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 
147e83
 /* Define an initialized recursive lock variable NAME with storage
147e83
    class CLASS.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # if LLL_LOCK_INITIALIZER == 0
147e83
 #  define __libc_lock_define_initialized_recursive(CLASS,NAME) \
147e83
   CLASS __libc_lock_recursive_t NAME;
147e83
@@ -65,7 +65,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 #endif
147e83
 
147e83
 /* Initialize a recursive mutex.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # define __libc_lock_init_recursive(NAME) \
147e83
   ((NAME) = (__libc_lock_recursive_t) _LIBC_LOCK_RECURSIVE_INITIALIZER, 0)
147e83
 #else
147e83
@@ -83,7 +83,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 #endif
147e83
 
147e83
 /* Finalize recursive named lock.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # define __libc_lock_fini_recursive(NAME) ((void) 0)
147e83
 #else
147e83
 # define __libc_lock_fini_recursive(NAME) \
147e83
@@ -91,7 +91,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 #endif
147e83
 
147e83
 /* Lock the recursive named lock variable.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # define __libc_lock_lock_recursive(NAME) \
147e83
   do {									      \
147e83
     void *self = THREAD_SELF;						      \
147e83
@@ -108,7 +108,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 #endif
147e83
 
147e83
 /* Try to lock the recursive named lock variable.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # define __libc_lock_trylock_recursive(NAME) \
147e83
   ({									      \
147e83
     int result = 0;							      \
147e83
@@ -133,7 +133,7 @@ typedef struct __libc_lock_recursive_opa
147e83
 #endif
147e83
 
147e83
 /* Unlock the recursive named lock variable.  */
147e83
-#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+#if defined _LIBC && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 /* We do no error checking here.  */
147e83
 # define __libc_lock_unlock_recursive(NAME) \
147e83
   do {									      \
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/pthread/bits/libc-lockP.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/pthread/bits/libc-lockP.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/pthread/bits/libc-lockP.h
147e83
@@ -35,7 +35,7 @@
147e83
 #include <pthread-functions.h>
147e83
 
147e83
 /* Mutex type.  */
147e83
-#if defined NOT_IN_libc && !defined IS_IN_libpthread
147e83
+#if defined NOT_IN_libc && !IS_IN (libpthread)
147e83
 typedef pthread_mutex_t __libc_lock_t;
147e83
 #else
147e83
 typedef int __libc_lock_t;
147e83
@@ -69,7 +69,7 @@ typedef pthread_key_t __libc_key_t;
147e83
    initialized locks must be set to one due to the lack of normal
147e83
    atomic operations.) */
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # if LLL_LOCK_INITIALIZER == 0
147e83
 #  define __libc_lock_define_initialized(CLASS,NAME) \
147e83
   CLASS __libc_lock_t NAME;
147e83
@@ -130,7 +130,7 @@ typedef pthread_key_t __libc_key_t;
147e83
 
147e83
 /* Initialize the named lock variable, leaving it in a consistent, unlocked
147e83
    state.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # define __libc_lock_init(NAME) ((NAME) = LLL_LOCK_INITIALIZER, 0)
147e83
 #else
147e83
 # define __libc_lock_init(NAME) \
147e83
@@ -149,7 +149,7 @@ typedef pthread_key_t __libc_key_t;
147e83
 /* Finalize the named lock variable, which must be locked.  It cannot be
147e83
    used again until __libc_lock_init is called again on it.  This must be
147e83
    called on a lock variable before the containing storage is reused.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # define __libc_lock_fini(NAME) ((void) 0)
147e83
 #else
147e83
 # define __libc_lock_fini(NAME) \
147e83
@@ -163,7 +163,7 @@ typedef pthread_key_t __libc_key_t;
147e83
 #endif
147e83
 
147e83
 /* Lock the named lock variable.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # ifndef __libc_lock_lock
147e83
 #  define __libc_lock_lock(NAME) \
147e83
   ({ lll_lock (NAME, LLL_PRIVATE); 0; })
147e83
@@ -179,7 +179,7 @@ typedef pthread_key_t __libc_key_t;
147e83
   __libc_ptf_call (__pthread_rwlock_wrlock, (&(NAME)), 0)
147e83
 
147e83
 /* Try to lock the named lock variable.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # ifndef __libc_lock_trylock
147e83
 #  define __libc_lock_trylock(NAME) \
147e83
   lll_trylock (NAME)
147e83
@@ -198,7 +198,7 @@ typedef pthread_key_t __libc_key_t;
147e83
   __libc_maybe_call (__pthread_mutex_trylock, (&(NAME).mutex), 0)
147e83
 
147e83
 /* Unlock the named lock variable.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 # define __libc_lock_unlock(NAME) \
147e83
   lll_unlock (NAME, LLL_PRIVATE)
147e83
 #else
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				\
147e83
@@ -81,7 +81,7 @@ ENTRY (name);								\
147e83
 # define UNDOCARGS_5	UNDOCARGS_3; ldp x3, x4, [sp, 32]
147e83
 # define UNDOCARGS_6	UNDOCARGS_4; ldp x4, x5, [sp, 40]
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	bl __pthread_enable_asynccancel
147e83
 #  define CDISABLE	bl __pthread_disable_asynccancel
147e83
 #  define __local_multiple_threads __pthread_multiple_threads
147e83
@@ -96,7 +96,7 @@ ENTRY (name);								\
147e83
 #  error Unsupported library
147e83
 # endif
147e83
 
147e83
-# if defined IS_IN_libpthread || !defined NOT_IN_libc
147e83
+# if IS_IN (libpthread) || !defined NOT_IN_libc
147e83
 #  ifndef __ASSEMBLER__
147e83
 extern int __local_multiple_threads attribute_hidden;
147e83
 #   define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
147e83
@@ -326,7 +326,7 @@
147e83
 /* Pointer mangling is supported for AArch64.  */
147e83
 #if (defined IS_IN_rtld) || \
147e83
      (!defined SHARED && (!defined NOT_IN_libc \
147e83
-			  || defined IS_IN_libpthread))
147e83
+			  || IS_IN (libpthread)))
147e83
 # ifdef __ASSEMBLER__
147e83
 #  define PTR_MANGLE(dst, src, guard, tmp)                                \
147e83
   LDST_PCREL (ldr, guard, tmp, C_SYMBOL_NAME(__pointer_chk_guard_local)); \
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
147e83
@@ -21,7 +21,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 /* NOTE: We do mark syscalls with unwind annotations, for the benefit of
147e83
    cancellation; but they're really only accurate at the point of the
147e83
@@ -186,7 +186,7 @@
147e83
 # define RESTORE_LR_6 \
147e83
   RESTORE_LR_0
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	bl PLTJMP(__pthread_enable_asynccancel)
147e83
 #  define CDISABLE	bl PLTJMP(__pthread_disable_asynccancel)
147e83
 #  define __local_multiple_threads __pthread_multiple_threads
147e83
@@ -201,7 +201,7 @@
147e83
 #  error Unsupported library
147e83
 # endif
147e83
 
147e83
-# if defined IS_IN_libpthread || !defined NOT_IN_libc
147e83
+# if IS_IN (libpthread) || !defined NOT_IN_libc
147e83
 #  ifndef __ASSEMBLER__
147e83
 extern int __local_multiple_threads attribute_hidden;
147e83
 #   define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				      \
147e83
@@ -108,7 +108,7 @@
147e83
 # define _POPCARGS_6	_POPCARGS_5; popl %ebp; \
147e83
 			cfi_adjust_cfa_offset (-4); cfi_restore (ebp);
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	call __pthread_enable_asynccancel;
147e83
 #  define CDISABLE	call __pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/i386/sysdep.h
147e83
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
147e83
@@ -36,7 +36,7 @@
147e83
 #define SYS_ify(syscall_name)	__NR_##syscall_name
147e83
 
147e83
 #if defined USE_DL_SYSINFO \
147e83
-    && (!defined NOT_IN_libc || defined IS_IN_libpthread)
147e83
+    && (!defined NOT_IN_libc || IS_IN (libpthread))
147e83
 # define I386_USE_SYSENTER	1
147e83
 #else
147e83
 # undef I386_USE_SYSENTER
147e83
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/not-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/not-cancel.h
147e83
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/not-cancel.h
147e83
@@ -27,7 +27,7 @@
147e83
    INLINE_SYSCALL (open, 2, (const char *) (name), (flags))
147e83
 
147e83
 /* Uncancelable openat.  */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 extern int __openat_nocancel (int fd, const char *fname, int oflag,
147e83
 			      mode_t mode) attribute_hidden;
147e83
 extern int __openat64_nocancel (int fd, const char *fname, int oflag,
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
147e83
@@ -23,7 +23,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				\
147e83
@@ -81,7 +81,7 @@
147e83
 # define DOCARGS_6	stw 8,40(1); DOCARGS_5
147e83
 # define UNDOCARGS_6	lwz 8,40(1); UNDOCARGS_5
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	bl __pthread_enable_asynccancel@local
147e83
 #  define CDISABLE	bl __pthread_disable_asynccancel@local
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
147e83
@@ -23,7 +23,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
147e83
 #  define DASHDASHPFX(str) .__##str
147e83
@@ -99,7 +99,7 @@
147e83
 # define DOCARGS_6	std 8,CANCEL_PARM_SAVE+40(1); DOCARGS_5
147e83
 # define UNDOCARGS_6	ld 8,CANCEL_PARM_SAVE+40(1); UNDOCARGS_5
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  ifdef SHARED
147e83
 #   define CENABLE	bl JUMPTARGET(__pthread_enable_asynccancel)
147e83
 #   define CDISABLE	bl JUMPTARGET(__pthread_disable_asynccancel)
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				      \
147e83
@@ -75,7 +75,7 @@ L(pseudo_check):							      \
147e83
 .size	__##syscall_name##_nocancel,.-__##syscall_name##_nocancel;	      \
147e83
 L(pseudo_end):
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	__pthread_enable_asynccancel
147e83
 #  define CDISABLE	__pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				      \
147e83
@@ -69,7 +69,7 @@ L(pseudo_check):							      \
147e83
 .size	__##syscall_name##_nocancel,.-__##syscall_name##_nocancel;	      \
147e83
 L(pseudo_end):
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	__pthread_enable_asynccancel
147e83
 #  define CDISABLE	__pthread_disable_asynccancel
147e83
 #  define __local_multiple_threads	__pthread_multiple_threads
147e83
@@ -111,7 +111,7 @@ L(pseudo_end):
147e83
 #define LR7_6		lg %r7,56+160(%r15); \
147e83
 			cfi_restore (%r7);
147e83
 
147e83
-# if defined IS_IN_libpthread || !defined NOT_IN_libc
147e83
+# if IS_IN (libpthread) || !defined NOT_IN_libc
147e83
 #  ifndef __ASSEMBLER__
147e83
 extern int __local_multiple_threads attribute_hidden;
147e83
 #   define SINGLE_THREAD_P \
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
147e83
@@ -21,7 +21,7 @@
147e83
 #include <kernel-features.h>
147e83
 #include "lowlevellock.h"
147e83
 
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 # ifdef SHARED
147e83
 #  define __pthread_unwind __GI___pthread_unwind
147e83
 # endif
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 /* The code to disable cancellation depends on the fact that the called
147e83
    functions are special.  They don't modify registers other than %rax
147e83
@@ -59,7 +59,7 @@
147e83
     jae SYSCALL_ERROR_LABEL
147e83
 
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	call __pthread_enable_asynccancel;
147e83
 #  define CDISABLE	call __pthread_disable_asynccancel;
147e83
 #  define __local_multiple_threads __pthread_multiple_threads
147e83
@@ -74,7 +74,7 @@
147e83
 #  error Unsupported library
147e83
 # endif
147e83
 
147e83
-# if defined IS_IN_libpthread || !defined NOT_IN_libc
147e83
+# if IS_IN (libpthread) || !defined NOT_IN_libc
147e83
 #  ifndef __ASSEMBLER__
147e83
 extern int __local_multiple_threads attribute_hidden;
147e83
 #   define SINGLE_THREAD_P \
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
147e83
@@ -19,7 +19,7 @@
147e83
 
147e83
 #include <sysdep.h>
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 extern int __open_nocancel (const char *, int, ...) attribute_hidden;
147e83
 extern int __close_nocancel (int) attribute_hidden;
147e83
 extern int __read_nocancel (int, void *, size_t) attribute_hidden;
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c
147e83
@@ -35,7 +35,7 @@ __lll_lock_wait_private (int *futex)
147e83
 
147e83
 
147e83
 /* These functions don't get included in libc.so  */
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 void
147e83
 __lll_lock_wait (int *futex, int private)
147e83
 {
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
147e83
@@ -21,7 +21,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # define _IMM12 #-12
147e83
 # define _IMM16 #-16
147e83
@@ -105,7 +105,7 @@
147e83
 # define LOAD_ARGS_5	LOAD_ARGS_4
147e83
 # define LOAD_ARGS_6	LOAD_ARGS_5
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define __local_enable_asynccancel	__pthread_enable_asynccancel
147e83
 #  define __local_disable_asynccancel	__pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
147e83
@@ -37,7 +37,7 @@ __lll_lock_wait_private (int *futex)
147e83
 
147e83
 
147e83
 /* These functions don't get included in libc.so  */
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 void
147e83
 __lll_lock_wait (int *futex, int private)
147e83
 {
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)	\
147e83
@@ -68,7 +68,7 @@ __##syscall_name##_nocancel:			\
147e83
 	 restore %g0, %l1, %o0;
147e83
 
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	call __pthread_enable_asynccancel
147e83
 #  define CDISABLE	call __pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)	\
147e83
@@ -66,7 +66,7 @@ __##syscall_name##_nocancel:			\
147e83
 2:	jmpl %i7 + 8, %g0;			\
147e83
 	 restore %g0, %l1, %o0;
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	call __pthread_enable_asynccancel
147e83
 #  define CDISABLE	call __pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
147e83
@@ -21,7 +21,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 /* ??? Assumes that nothing comes between PSEUDO and PSEUDO_END
147e83
    besides "ret".  */
147e83
@@ -105,7 +105,7 @@ __LABEL($multi_error)						\
147e83
 # define LOAD_ARGS_5	LOAD_ARGS_4; ldq a4, 40(sp)
147e83
 # define LOAD_ARGS_6	LOAD_ARGS_5; ldq a5, 48(sp)
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define __local_enable_asynccancel	__pthread_enable_asynccancel
147e83
 #  define __local_disable_asynccancel	__pthread_disable_asynccancel
147e83
 #  define __local_multiple_threads	__pthread_multiple_threads
147e83
@@ -128,7 +128,7 @@ __LABEL($multi_error)						\
147e83
 #  define CDISABLE	jsr ra, __local_disable_asynccancel; ldgp ra, 0(gp)
147e83
 # endif
147e83
 
147e83
-# if defined IS_IN_libpthread || !defined NOT_IN_libc
147e83
+# if IS_IN (libpthread) || !defined NOT_IN_libc
147e83
 #  ifndef __ASSEMBLER__
147e83
 extern int __local_multiple_threads attribute_hidden;
147e83
 #   define SINGLE_THREAD_P \
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
147e83
@@ -23,7 +23,7 @@
147e83
 # include <linuxthreads/internals.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				\
147e83
@@ -79,7 +79,7 @@
147e83
 # define LOAD_ARGS_5	LOAD_ARGS_4
147e83
 # define LOAD_ARGS_6	LOAD_ARGS_5
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	call __pthread_enable_asynccancel,[],0;
147e83
 #  define CDISABLE	call __pthread_disable_asynccancel,[],0;
147e83
 # elif IS_IN (librt)
147e83
@@ -105,7 +105,7 @@
147e83
 
147e83
 #if !defined NOT_IN_libc
147e83
 # define __local_multiple_threads __libc_multiple_threads
147e83
-#elif defined IS_IN_libpthread
147e83
+#elif IS_IN (libpthread)
147e83
 # define __local_multiple_threads __pthread_multiple_threads
147e83
 #else
147e83
 # define __local_multiple_threads __librt_multiple_threads
147e83
@@ -118,7 +118,7 @@
147e83
 				   p_header.data.multiple_threads) == 0, 1)
147e83
 #  else
147e83
 extern int __local_multiple_threads
147e83
-#   if !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#   if !defined NOT_IN_libc || IS_IN (libpthread)
147e83
   attribute_hidden;
147e83
 #   else
147e83
   ;
147e83
@@ -130,7 +130,7 @@ extern int __local_multiple_threads
147e83
 #   define SINGLE_THREAD_P \
147e83
 	mov (+__local_multiple_threads),d0; \
147e83
 	cmp 0,d0
147e83
-#  elif !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#  elif !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 #   define SINGLE_THREAD_P \
147e83
 	movm [a2],(sp); \
147e83
      1: mov pc,a2; \
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
147e83
@@ -85,7 +85,7 @@ __lll_timedlock_wait (lll_lock_t *futex,
147e83
 
147e83
 
147e83
 /* These don't get included in libc.so  */
147e83
-#ifdef IS_IN_libpthread
147e83
+#if IS_IN (libpthread)
147e83
 int
147e83
 lll_unlock_wake_cb (lll_lock_t *futex)
147e83
 {
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # ifndef NO_ERROR
147e83
 #  define NO_ERROR -0x1000
147e83
@@ -204,7 +204,7 @@ L(pre_end):						ASM_LINE_SEP	\
147e83
 # define POPARGS_6	POPARGS_5 ldw -56(%sr0,%sp), %r21	ASM_LINE_SEP	\
147e83
 			.cfi_restore 21				ASM_LINE_SEP
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  ifdef PIC
147e83
 #   define CENABLE .import __pthread_enable_asynccancel,code ASM_LINE_SEP \
147e83
 			bl __pthread_enable_asynccancel,%r2 ASM_LINE_SEP
147e83
@@ -244,7 +244,7 @@ L(pre_end):						ASM_LINE_SEP	\
147e83
 #  error Unsupported library
147e83
 # endif
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define __local_multiple_threads __pthread_multiple_threads
147e83
 # elif !defined NOT_IN_libc
147e83
 #  define __local_multiple_threads __libc_multiple_threads
147e83
@@ -271,7 +271,7 @@ L(pre_end):						ASM_LINE_SEP	\
147e83
 # define NO_CANCELLATION 1
147e83
 
147e83
 #endif
147e83
-/* !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt) */
147e83
+/* !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt) */
147e83
 
147e83
 #ifndef __ASSEMBLER__
147e83
 # define RTLD_SINGLE_THREAD_P \
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 
147e83
@@ -160,7 +160,7 @@ __GC_##name:								      \
147e83
 # undef PSEUDO_END
147e83
 # define PSEUDO_END(name) .endp
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	br.call.sptk.many b0 = __pthread_enable_asynccancel
147e83
 #  define CDISABLE	br.call.sptk.many b0 = __pthread_disable_asynccancel
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # undef PSEUDO
147e83
 # define PSEUDO(name, syscall_name, args)				      \
147e83
@@ -100,7 +100,7 @@
147e83
 #  define PSEUDO_JMP(sym) jbsr sym
147e83
 # endif
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	PSEUDO_JMP (__pthread_enable_asynccancel)
147e83
 #  define CDISABLE	PSEUDO_JMP (__pthread_disable_asynccancel)
147e83
 # elif !defined NOT_IN_libc
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
147e83
@@ -27,7 +27,7 @@
147e83
    happen before any instructions.  So we use cfi_same_value instead of
147e83
    cfi_restore.  */
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 #ifdef __PIC__
147e83
 # undef PSEUDO
147e83
@@ -146,7 +146,7 @@
147e83
 # define SAVESTK 	PTR_SUBU sp, STKSPACE; cfi_adjust_cfa_offset(STKSPACE)
147e83
 # define RESTORESTK 	PTR_ADDU sp, STKSPACE; cfi_adjust_cfa_offset(-STKSPACE)
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	PTR_LA t9, __pthread_enable_asynccancel; jalr t9
147e83
 #  define CDISABLE	PTR_LA t9, __pthread_disable_asynccancel; jalr t9
147e83
 # elif IS_IN (librt)
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 # ifdef __PIC__
147e83
 #  define PSEUDO_CPLOAD .cpload t9;
147e83
@@ -152,7 +152,7 @@
147e83
 #  define PSEUDO_JMP(sym) jal sym;
147e83
 # endif
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	PSEUDO_JMP (__pthread_enable_asynccancel)
147e83
 #  define CDISABLE	PSEUDO_JMP (__pthread_disable_asynccancel)
147e83
 # elif IS_IN (librt)
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
147e83
@@ -22,7 +22,7 @@
147e83
 # include <nptl/pthreadP.h>
147e83
 #endif
147e83
 
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 /* Allow hacking in some extra code if desired. */
147e83
 #ifndef PSEUDO_EXTRA
147e83
@@ -117,7 +117,7 @@
147e83
 
147e83
 # define STKSPACE	(13 * REGSIZE)
147e83
 
147e83
-# ifdef IS_IN_libpthread
147e83
+# if IS_IN (libpthread)
147e83
 #  define CENABLE	jal __pthread_enable_asynccancel
147e83
 #  define CDISABLE	jal __pthread_disable_asynccancel
147e83
 # elif IS_IN (librt)
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
147e83
@@ -1,7 +1,7 @@
147e83
 /*
147e83
 extern pid_t __waitpid_nocancel (pid_t, int *, int) attribute_hidden;
147e83
 */
147e83
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
147e83
+#if !defined NOT_IN_libc || IS_IN (libpthread) || IS_IN (librt)
147e83
 
147e83
 /* Call __NR_wait4, providing fourth argument (struct rusage *) as NULL. */
147e83
 #define PSEUDO_EXTRA move r3, zero;
147e83
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
147e83
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
147e83
@@ -45,7 +45,7 @@
147e83
 #ifndef PIC
147e83
 /* For static code, on error jump to __syscall_error directly. */
147e83
 # define SYSCALL_ERROR_NAME __syscall_error
147e83
-#elif !defined NOT_IN_libc || defined IS_IN_libpthread
147e83
+#elif !defined NOT_IN_libc || IS_IN (libpthread)
147e83
 /* Use the internal name for libc/libpthread shared objects. */
147e83
 # define SYSCALL_ERROR_NAME __GI___syscall_error
147e83
 #else