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