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