bca718
commit a38484851aa244e1d5c48405f0e26fe93fa8d3b5
bca718
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
bca718
Date:   Thu Nov 20 21:09:43 2014 +0530
bca718
bca718
    Remove IS_IN_rtld
bca718
    
bca718
    Replace with IS_IN (rtld).  Generated code is unchanged on
bca718
    x86_64.
bca718
    
bca718
            * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
bca718
            * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
bca718
            * elf/rtld-Rules: Likewise.
bca718
            * elf/setup-vdso.h: Likewise.
bca718
            * include/assert.h: Likewise.
bca718
            * include/bits/stdlib-float.h: Likewise.
bca718
            * include/errno.h: Likewise.
bca718
            * include/sys/stat.h: Likewise.
bca718
            * include/unistd.h: Likewise.
bca718
            * sysdeps/aarch64/setjmp.S: Likewise.
bca718
            * sysdeps/alpha/setjmp.S: Likewise.
bca718
            * sysdeps/arm/__longjmp.S: Likewise.
bca718
            * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
bca718
            * sysdeps/arm/setjmp.S: Likewise.
bca718
            * sysdeps/arm/sysdep.h: Likewise.
bca718
            * sysdeps/generic/_itoa.h: Likewise.
bca718
            * sysdeps/generic/dl-sysdep.h: Likewise.
bca718
            * sysdeps/generic/ldsodefs.h: Likewise.
bca718
            * sysdeps/i386/dl-tls.h: Likewise.
bca718
            * sysdeps/i386/setjmp.S: Likewise.
bca718
            * sysdeps/m68k/setjmp.c: Likewise.
bca718
            * sysdeps/mach/hurd/dl-execstack.c: Likewise.
bca718
            * sysdeps/mach/hurd/opendir.c: Likewise.
bca718
            * sysdeps/posix/getcwd.c: Likewise.
bca718
            * sysdeps/posix/opendir.c: Likewise.
bca718
            * sysdeps/posix/profil.c: Likewise.
bca718
            * sysdeps/powerpc/dl-procinfo.h: Likewise.
bca718
            * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
bca718
            * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
bca718
            * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
bca718
            * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
bca718
            * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
bca718
            * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
bca718
            * sysdeps/s390/dl-tls.h: Likewise.
bca718
            * sysdeps/s390/s390-32/setjmp.S: Likewise.
bca718
            * sysdeps/s390/s390-64/setjmp.S: Likewise.
bca718
            * sysdeps/sh/sh3/setjmp.S: Likewise.
bca718
            * sysdeps/sh/sh4/setjmp.S: Likewise.
bca718
            * sysdeps/unix/alpha/sysdep.h: Likewise.
bca718
            * sysdeps/unix/arm/sysdep.S: Likewise.
bca718
            * sysdeps/unix/i386/sysdep.S: Likewise.
bca718
            * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
bca718
            * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
bca718
            * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
bca718
            * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
bca718
            * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
bca718
            * sysdeps/unix/x86_64/sysdep.S: Likewise.
bca718
            * sysdeps/x86_64/setjmp.S: Likewise.
bca718
bca718
Index: glibc-2.17-c758a686/elf/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/elf/Makefile
bca718
+++ glibc-2.17-c758a686/elf/Makefile
bca718
@@ -444,7 +444,7 @@ CFLAGS-cache.c = $(SYSCONF-FLAGS)
bca718
 CFLAGS-rtld.c = $(SYSCONF-FLAGS)
bca718
 
bca718
 CPPFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
bca718
-		     -DNOT_IN_libc=1 -DIS_IN_rtld=1)
bca718
+		     -DNOT_IN_libc=1)
bca718
 
bca718
 # Disable any optimization which might result in function calls during early
bca718
 # dynamic loader startup. We disable -ftree-loop-distribute-patterns which
bca718
Index: glibc-2.17-c758a686/elf/dl-open.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/elf/dl-open.c
bca718
+++ glibc-2.17-c758a686/elf/dl-open.c
bca718
@@ -741,7 +741,7 @@ _dl_show_scope (struct link_map *l, int
bca718
   _dl_debug_printf ("\n");
bca718
 }
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* Return non-zero if ADDR lies within one of L's segments.  */
bca718
 int
bca718
 internal_function
bca718
Index: glibc-2.17-c758a686/elf/rtld-Rules
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/elf/rtld-Rules
bca718
+++ glibc-2.17-c758a686/elf/rtld-Rules
bca718
@@ -134,6 +134,6 @@ lib := rtld
bca718
 include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
bca718
 
bca718
 # This here is the whole point of all the shenanigans.
bca718
-rtld-CPPFLAGS := -DNOT_IN_libc=1 -DIS_IN_rtld=1
bca718
+rtld-CPPFLAGS := -DNOT_IN_libc=1
bca718
 
bca718
 endif
bca718
Index: glibc-2.17-c758a686/elf/setup-vdso.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/elf/setup-vdso.h
bca718
+++ glibc-2.17-c758a686/elf/setup-vdso.h
bca718
@@ -101,7 +101,7 @@ setup_vdso (struct link_map *main_map __
bca718
       /* Add the vDSO to the object list.  */
bca718
       _dl_add_to_namespace_list (l, LM_ID_BASE);
bca718
 
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
       /* Rearrange the list so this DSO appears after rtld_map.  */
bca718
       assert (l->l_next == NULL);
bca718
       assert (l->l_prev == main_map);
bca718
Index: glibc-2.17-c758a686/include/assert.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/include/assert.h
bca718
+++ glibc-2.17-c758a686/include/assert.h
bca718
@@ -20,7 +20,7 @@ extern void __assert_fail_base (const ch
bca718
 				const char *function)
bca718
      __THROW  __attribute__ ((__noreturn__));
bca718
 
bca718
-# if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+# if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 hidden_proto (__assert_fail)
bca718
 hidden_proto (__assert_perror_fail)
bca718
 # endif
bca718
Index: glibc-2.17-c758a686/include/bits/stdlib-float.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/include/bits/stdlib-float.h
bca718
+++ glibc-2.17-c758a686/include/bits/stdlib-float.h
bca718
@@ -1,4 +1,4 @@
bca718
 /* No floating-point inline functions in rtld.  */
bca718
-#ifndef IS_IN_rtld
bca718
+#if !IS_IN (rtld)
bca718
 # include <stdlib/bits/stdlib-float.h>
bca718
 #endif
bca718
Index: glibc-2.17-c758a686/include/errno.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/include/errno.h
bca718
+++ glibc-2.17-c758a686/include/errno.h
bca718
@@ -4,7 +4,7 @@
bca718
 
bca718
 #if defined _ERRNO_H && !defined _ISOMAC && !defined __cplusplus
bca718
 
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 #  include <dl-sysdep.h>
bca718
 # endif
bca718
 
bca718
Index: glibc-2.17-c758a686/include/sys/stat.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/include/sys/stat.h
bca718
+++ glibc-2.17-c758a686/include/sys/stat.h
bca718
@@ -12,7 +12,7 @@ extern __mode_t __umask (__mode_t __mask
bca718
 extern int __mkdir (const char *__path, __mode_t __mode);
bca718
 extern int __mknod (const char *__path,
bca718
 		    __mode_t __mode, __dev_t __dev);
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 hidden_proto (__fxstat)
bca718
 hidden_proto (__fxstat64)
bca718
 hidden_proto (__lxstat)
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/aarch64/setjmp.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
bca718
@@ -58,7 +58,7 @@ ENTRY (__sigsetjmp)
bca718
 	mov	x2,  sp
bca718
 	str	x2,  [x0, #JB_SP<<3]
bca718
 #endif
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask */
bca718
 	mov	w0, #0
bca718
 	RET
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/alpha/setjmp.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
bca718
@@ -86,7 +86,7 @@ $sigsetjmp_local:
bca718
 	ldq	ra, 0(sp)
bca718
 	addq	sp, 16, sp
bca718
 	ret
bca718
-#elif defined IS_IN_rtld
bca718
+#elif IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	mov	0, v0
bca718
 	ret
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/arm/__longjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/arm/__longjmp.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/arm/__longjmp.S
bca718
@@ -52,7 +52,7 @@ ENTRY (__longjmp)
bca718
 #endif
bca718
 
bca718
 #ifdef NEED_HWCAP
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 	ldr	a2, 1f
bca718
 	ldr	a3, .Lrtld_local_ro
bca718
 0:	add	a2, pc, a2
bca718
@@ -104,7 +104,7 @@ ENTRY (__longjmp)
bca718
 	DO_RET(lr)
bca718
 
bca718
 #ifdef NEED_HWCAP
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 1:	.long	_GLOBAL_OFFSET_TABLE_ - 0b - 8
bca718
 .Lrtld_local_ro:
bca718
 	.long	C_SYMBOL_NAME(_rtld_local_ro)(GOTOFF)
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/arm/aeabi_unwind_cpp_pr1.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/arm/aeabi_unwind_cpp_pr1.c
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/arm/aeabi_unwind_cpp_pr1.c
bca718
@@ -27,7 +27,7 @@ attribute_hidden
bca718
 void
bca718
 __aeabi_unwind_cpp_pr0 (void)
bca718
 {
bca718
-#ifndef IS_IN_rtld
bca718
+#if !IS_IN (rtld)
bca718
   abort ();
bca718
 #endif
bca718
 }
bca718
@@ -36,7 +36,7 @@ attribute_hidden
bca718
 void
bca718
 __aeabi_unwind_cpp_pr1 (void)
bca718
 {
bca718
-#ifndef IS_IN_rtld
bca718
+#if !IS_IN (rtld)
bca718
   abort ();
bca718
 #endif
bca718
 }
bca718
@@ -45,7 +45,7 @@ attribute_hidden
bca718
 void
bca718
 __aeabi_unwind_cpp_pr2 (void)
bca718
 {
bca718
-#ifndef IS_IN_rtld
bca718
+#if !IS_IN (rtld)
bca718
   abort ();
bca718
 #endif
bca718
 }
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/arm/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/arm/setjmp.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/arm/setjmp.S
bca718
@@ -35,7 +35,7 @@ ENTRY (__sigsetjmp)
bca718
 
bca718
 #ifdef NEED_HWCAP
bca718
 	/* Check if we have a VFP unit.  */
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 	ldr	a3, 1f
bca718
 	ldr	a4, .Lrtld_local_ro
bca718
 0:	add	a3, pc, a3
bca718
@@ -90,7 +90,7 @@ ENTRY (__sigsetjmp)
bca718
 	B	PLTJMP(C_SYMBOL_NAME(__sigjmp_save))
bca718
 
bca718
 #ifdef NEED_HWCAP
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 1:	.long	_GLOBAL_OFFSET_TABLE_ - 0b - 8
bca718
 .Lrtld_local_ro:
bca718
 	.long	C_SYMBOL_NAME(_rtld_local_ro)(GOTOFF)
bca718
Index: glibc-2.17-c758a686/sysdeps/generic/_itoa.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/generic/_itoa.h
bca718
+++ glibc-2.17-c758a686/sysdeps/generic/_itoa.h
bca718
@@ -46,7 +46,7 @@ extern char *_itoa (unsigned long long i
bca718
 
bca718
 extern const char _itoa_upper_digits[];
bca718
 extern const char _itoa_lower_digits[];
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 hidden_proto (_itoa_upper_digits)
bca718
 hidden_proto (_itoa_lower_digits)
bca718
 #endif
bca718
Index: glibc-2.17-c758a686/sysdeps/generic/dl-sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/generic/dl-sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/generic/dl-sysdep.h
bca718
@@ -27,7 +27,7 @@
bca718
    all the libc functions that ld.so uses are called without PLT and always
bca718
    get the versions linked into ld.so rather than the libc ones.  */
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # define RTLD_PRIVATE_ERRNO 1
bca718
 #else
bca718
 # define RTLD_PRIVATE_ERRNO 0
bca718
Index: glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/generic/ldsodefs.h
bca718
+++ glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h
bca718
@@ -246,7 +246,7 @@ typedef void (*receiver_fct) (int, const
bca718
 # define GL(name) _##name
bca718
 #else
bca718
 # define EXTERN
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 #  define GL(name) _rtld_local._##name
bca718
 # else
bca718
 #  define GL(name) _rtld_global._##name
bca718
@@ -415,7 +415,7 @@ struct rtld_global
bca718
 #ifdef SHARED
bca718
 };
bca718
 # define __rtld_global_attribute__
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 #  ifdef HAVE_SDATA_SECTION
bca718
 #   define __rtld_local_attribute__ \
bca718
 	    __attribute__ ((visibility ("hidden"), section (".sdata")))
bca718
@@ -434,7 +434,7 @@ extern struct rtld_global _rtld_global _
bca718
 #ifndef SHARED
bca718
 # define GLRO(name) _##name
bca718
 #else
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 #  define GLRO(name) _rtld_local_ro._##name
bca718
 # else
bca718
 #  define GLRO(name) _rtld_global_ro._##name
bca718
@@ -593,7 +593,7 @@ struct rtld_global_ro
bca718
   EXTERN int _dl_pointer_guard;
bca718
 };
bca718
 # define __rtld_global_attribute__
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 #  define __rtld_local_attribute__ __attribute__ ((visibility ("hidden")))
bca718
 extern struct rtld_global_ro _rtld_local_ro
bca718
     attribute_relro __rtld_local_attribute__;
bca718
@@ -610,7 +610,7 @@ extern const struct rtld_global_ro _rtld
bca718
 #endif
bca718
 #undef EXTERN
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* This is the initial value of GL(dl_error_catch_tsd).
bca718
    A non-TLS libpthread will change it.  */
bca718
 extern void **_dl_initial_error_catch_tsd (void) __attribute__ ((const))
bca718
@@ -641,7 +641,7 @@ extern char **_dl_argv
bca718
      attribute_relro
bca718
 #endif
bca718
      ;
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 extern char **_dl_argv_internal attribute_hidden
bca718
 # ifndef DL_ARGV_NOT_RELRO
bca718
      attribute_relro
bca718
@@ -655,7 +655,7 @@ extern char **_dl_argv_internal attribut
bca718
 /* Flag set at startup and cleared when the last initializer has run.  */
bca718
 extern int _dl_starting_up;
bca718
 weak_extern (_dl_starting_up)
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 extern int _dl_starting_up_internal attribute_hidden;
bca718
 #endif
bca718
 
bca718
Index: glibc-2.17-c758a686/sysdeps/i386/dl-tls.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/i386/dl-tls.h
bca718
+++ glibc-2.17-c758a686/sysdeps/i386/dl-tls.h
bca718
@@ -32,7 +32,7 @@ extern void *___tls_get_addr (tls_index
bca718
 extern void *___tls_get_addr_internal (tls_index *ti)
bca718
      __attribute__ ((__regparm__ (1))) attribute_hidden;
bca718
 
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 /* The special thing about the x86 TLS ABI is that we have two
bca718
    variants of the __tls_get_addr function with different calling
bca718
    conventions.  The GNU version, which we are mostly concerned here,
bca718
Index: glibc-2.17-c758a686/sysdeps/i386/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/i386/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/i386/setjmp.S
bca718
@@ -51,7 +51,7 @@ ENTRY (BP_SYM (__sigsetjmp))
bca718
 	LEAVE /* pop frame pointer to prepare for tail-call.  */
bca718
 	movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer.  */
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	xorl %eax, %eax
bca718
 	ret
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/m68k/setjmp.c
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
bca718
@@ -57,7 +57,7 @@ __sigsetjmp (jmp_buf env, int savemask)
bca718
 		: : "m" (env[0].__jmpbuf[0].__fpregs[0]));
bca718
 #endif
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
   /* In ld.so we never save the signal mask.  */
bca718
   return 0;
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/mach/hurd/dl-execstack.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/mach/hurd/dl-execstack.c
bca718
+++ glibc-2.17-c758a686/sysdeps/mach/hurd/dl-execstack.c
bca718
@@ -34,7 +34,7 @@ _dl_make_stack_executable (void **stack_
bca718
     return EPERM;
bca718
   *stack_endp = NULL;
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
   if (__mprotect ((void *)_dl_hurd_data->stack_base, _dl_hurd_data->stack_size,
bca718
 		  PROT_READ|PROT_WRITE|PROT_EXEC) != 0)
bca718
     return errno;
bca718
Index: glibc-2.17-c758a686/sysdeps/mach/hurd/opendir.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/mach/hurd/opendir.c
bca718
+++ glibc-2.17-c758a686/sysdeps/mach/hurd/opendir.c
bca718
@@ -82,7 +82,7 @@ __opendirat (int dfd, const char *name)
bca718
 
bca718
   int flags = O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC;
bca718
   int fd;
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
   assert (dfd == AT_FDCWD);
bca718
   fd = open_not_cancel_2 (name, flags);
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/posix/getcwd.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/posix/getcwd.c
bca718
+++ glibc-2.17-c758a686/sysdeps/posix/getcwd.c
bca718
@@ -206,7 +206,7 @@ extern char *alloca ();
bca718
 
bca718
 #ifdef __ASSUME_ATFCTS
bca718
 # define __have_atfcts 1
bca718
-#elif defined IS_IN_rtld
bca718
+#elif IS_IN (rtld)
bca718
 static int __rtld_have_atfcts;
bca718
 # define __have_atfcts __rtld_have_atfcts
bca718
 #endif
bca718
Index: glibc-2.17-c758a686/sysdeps/posix/opendir.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/posix/opendir.c
bca718
+++ glibc-2.17-c758a686/sysdeps/posix/opendir.c
bca718
@@ -121,7 +121,7 @@ __opendirat (int dfd, const char *name)
bca718
   flags |= O_CLOEXEC;
bca718
 #endif
bca718
   int fd;
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
   assert (dfd == AT_FDCWD);
bca718
   fd = open_not_cancel_2 (name, flags);
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/posix/profil.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/posix/profil.c
bca718
+++ glibc-2.17-c758a686/sysdeps/posix/profil.c
bca718
@@ -65,7 +65,7 @@ __profil (u_short *sample_buffer, size_t
bca718
 {
bca718
   struct sigaction act;
bca718
   struct itimerval timer;
bca718
-#ifndef IS_IN_rtld
bca718
+#if !IS_IN (rtld)
bca718
   static struct sigaction oact;
bca718
   static struct itimerval otimer;
bca718
 # define oact_ptr &oact
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/dl-procinfo.h
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h
bca718
@@ -166,7 +166,7 @@ _dl_string_platform (const char *str)
bca718
   return -1;
bca718
 }
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 static inline int
bca718
 __attribute__ ((unused))
bca718
 _dl_procinfo (unsigned int type, unsigned long int word)
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
bca718
@@ -37,7 +37,7 @@ ENTRY (BP_SYM (__longjmp))
bca718
 	addis	r5,r5,_GLOBAL_OFFSET_TABLE_-got_label@ha
bca718
 	addi	r5,r5,_GLOBAL_OFFSET_TABLE_-got_label@l
bca718
 #  ifdef SHARED
bca718
-#   ifdef IS_IN_rtld
bca718
+#   if IS_IN (rtld)
bca718
 	/* Inside ld.so we use the local alias to avoid runtime GOT
bca718
 	   relocations.  */
bca718
 	lwz     r5,_rtld_local_ro@got(r5)
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
bca718
@@ -90,7 +90,7 @@ ENTRY (BP_SYM (__sigsetjmp))
bca718
 	mtlr	r6
bca718
 	cfi_same_value (lr)
bca718
 #  ifdef SHARED
bca718
-#   ifdef IS_IN_rtld
bca718
+#   if IS_IN (rtld)
bca718
 	/* Inside ld.so we use the local alias to avoid runtime GOT
bca718
 	   relocations.  */
bca718
 	lwz     r5,_rtld_local_ro@got(r5)
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
bca718
@@ -21,7 +21,7 @@
bca718
    the dl_hwcap field. The assembly is to make the compiler not optimize the
bca718
    test (&_rtld_global_ro != NULL), which is always true in ISO C (but not
bca718
    in that case since _rtld_global_ro might not been realocated yet).  */
bca718
-#if defined(SHARED) && !defined(IS_IN_rtld)
bca718
+#if defined(SHARED) && !IS_IN (rtld)
bca718
 # define __GLRO(value) \
bca718
   ({ volatile void **__p = (volatile void**)(&_rtld_global_ro);	\
bca718
     unsigned long int __ret;					\
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/setjmp-common.S
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
bca718
@@ -64,7 +64,7 @@ ENTRY (BP_SYM (__sigsetjmp))
bca718
 	stw  r29,((JB_GPRS+15)*4)(3)
bca718
 	stw  r30,((JB_GPRS+16)*4)(3)
bca718
 	stw  r31,((JB_GPRS+17)*4)(3)
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	li   r3,0
bca718
 	blr
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/__longjmp-common.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc64/__longjmp-common.S
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/__longjmp-common.S
bca718
@@ -31,7 +31,7 @@
bca718
 	.section	".toc","aw"
bca718
 .LC__dl_hwcap:
bca718
 # ifdef SHARED
bca718
-#  ifdef IS_IN_rtld
bca718
+#  if IS_IN (rtld)
bca718
 	/* Inside ld.so we use the local alias to avoid runtime GOT
bca718
 	   relocations.  */
bca718
 	.tc _rtld_local_ro[TC],_rtld_local_ro
bca718
@@ -132,7 +132,7 @@ L(no_vmx):
bca718
 	ld r0,(JB_LR*8)(r3)
bca718
 	ld r14,((JB_GPRS+0)*8)(r3)
bca718
 	lfd fp14,((JB_FPRS+0)*8)(r3)
bca718
-#if defined SHARED && !defined IS_IN_rtld
bca718
+#if defined SHARED && !IS_IN (rtld)
bca718
 	std r2,FRAME_TOC_SAVE(r1)	/* Restore the callers TOC save area.  */
bca718
 #endif
bca718
 	ld r15,((JB_GPRS+1)*8)(r3)
bca718
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc64/setjmp-common.S
bca718
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
bca718
@@ -30,7 +30,7 @@
bca718
 	.section	".toc","aw"
bca718
 .LC__dl_hwcap:
bca718
 # ifdef SHARED
bca718
-#  ifdef IS_IN_rtld
bca718
+#  if IS_IN (rtld)
bca718
 	/* Inside ld.so we use the local alias to avoid runtime GOT
bca718
 	   relocations.  */
bca718
 	.tc _rtld_local_ro[TC],_rtld_local_ro
bca718
@@ -50,7 +50,7 @@ ENTRY (setjmp)
bca718
 	b JUMPTARGET (GLUE(__sigsetjmp,_ent))
bca718
 END (setjmp)
bca718
 
bca718
-#if defined SHARED && !defined IS_IN_rtld && !defined __NO_VMX__
bca718
+#if defined SHARED && !IS_IN (rtld) && !defined __NO_VMX__
bca718
 /* When called from within libc we need a special version of _setjmp
bca718
    that saves r2 since the call won't go via a plt call stub.  See
bca718
    bugz #269.  __GI__setjmp is used in csu/libc-start.c when
bca718
@@ -82,7 +82,7 @@ JUMPTARGET(GLUE(__sigsetjmp,_ent)):
bca718
 	std  r1,(JB_GPR1*8)(3)
bca718
 #endif
bca718
 	mflr r0
bca718
-#if defined SHARED && !defined IS_IN_rtld
bca718
+#if defined SHARED && !IS_IN (rtld)
bca718
 	ld   r5,FRAME_TOC_SAVE(r1)	/* Retrieve the callers TOC.  */
bca718
 	std  r5,(JB_GPR2*8)(3)
bca718
 #else
bca718
@@ -212,7 +212,7 @@ L(no_vmx):
bca718
 #else
bca718
 	li	r6,0
bca718
 #endif
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	li	r3,0
bca718
 	blr
bca718
 #elif defined SHARED
bca718
Index: glibc-2.17-c758a686/sysdeps/s390/dl-tls.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/s390/dl-tls.h
bca718
+++ glibc-2.17-c758a686/sysdeps/s390/dl-tls.h
bca718
@@ -29,7 +29,7 @@ typedef struct
bca718
 
bca718
 extern unsigned long __tls_get_offset (unsigned long got_offset);
bca718
 
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 
bca718
 #  include <shlib-compat.h>
bca718
 
bca718
@@ -78,9 +78,9 @@ __tls_get_offset:\n\
bca718
 1:	.long	__tls_get_addr - 0b\n\
bca718
 ");
bca718
 #  endif
bca718
-# else /* IS_IN_rtld */
bca718
+# else /* IS_IN (rtld) */
bca718
 extern void *__tls_get_addr_internal (tls_index *ti);
bca718
-# endif /* !IS_IN_rtld */
bca718
+# endif /* !IS_IN (rtld) */
bca718
 
bca718
 # define GET_ADDR_OFFSET \
bca718
   (ti->ti_offset - (unsigned long) __builtin_thread_pointer ())
bca718
Index: glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-32/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
bca718
@@ -57,7 +57,7 @@ ENTRY(__sigsetjmp)
bca718
 #endif
bca718
 	std    %f4,40(%r2)
bca718
 	std    %f6,48(%r2)
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	lhi    %r2,0
bca718
 	br     %r14
bca718
Index: glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-64/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
bca718
@@ -63,7 +63,7 @@ ENTRY(__sigsetjmp)
bca718
 	std    %f13,120(%r2)
bca718
 	std    %f14,128(%r2)
bca718
 	std    %f15,136(%r2)
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	lghi   %r2,0
bca718
 	br     %r14
bca718
Index: glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh3/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
bca718
@@ -46,7 +46,7 @@ ENTRY (__sigsetjmp)
bca718
 	mov.l	r9, @-r4
bca718
 	mov.l	r8, @-r4
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	rts
bca718
 	 mov	#0, r0
bca718
Index: glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh4/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
bca718
@@ -55,7 +55,7 @@ ENTRY (__sigsetjmp)
bca718
 	mov.l	r9, @-r4
bca718
 	mov.l	r8, @-r4
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	rts
bca718
 	 mov	#0, r0
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/alpha/sysdep.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
bca718
@@ -26,7 +26,7 @@
bca718
 # include <regdef.h>
bca718
 #endif
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>         /* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 
bca718
@@ -346,7 +346,7 @@ __LABEL(name)						\
bca718
 
bca718
 #include <stdint.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # ifdef __ASSEMBLER__
bca718
 #  define PTR_MANGLE(dst, src, tmp)				\
bca718
 	ldah	tmp, __pointer_chk_guard_local($29) !gprelhigh;	\
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/arm/sysdep.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/arm/sysdep.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/arm/sysdep.S
bca718
@@ -21,7 +21,7 @@
bca718
 #define _ERRNO_H
bca718
 #include <bits/errno.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>			/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/i386/sysdep.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/i386/sysdep.S
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/i386/sysdep.S
bca718
@@ -22,7 +22,7 @@
bca718
 #include <bp-asm.h>
bca718
 #include <bp-sym.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>		/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
bca718
@@ -324,7 +324,7 @@
bca718
 #endif	/* __ASSEMBLER__ */
bca718
 
bca718
 /* Pointer mangling is supported for AArch64.  */
bca718
-#if (defined IS_IN_rtld) || \
bca718
+#if (IS_IN (rtld)) || \
bca718
      (!defined SHARED && (!defined NOT_IN_libc \
bca718
 			  || IS_IN (libpthread)))
bca718
 # ifdef __ASSEMBLER__
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/getcwd.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/getcwd.c
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/getcwd.c
bca718
@@ -33,7 +33,7 @@
bca718
 
bca718
 /* If we compile the file for use in ld.so we don't need the feature
bca718
    that getcwd() allocates the buffers itself.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # define NO_ALLOCATION	1
bca718
 #endif
bca718
 
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h
bca718
@@ -56,7 +56,7 @@
bca718
 /* Initialize locks to zero.  */
bca718
 #define LLL_MUTEX_LOCK_INITIALIZER (0)
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
bca718
@@ -71,7 +71,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/i386/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
bca718
@@ -521,7 +521,7 @@ asm (".L__X'%ebx = 1\n\t"
bca718
 
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  Using a global variable
bca718
    is too complicated here since we have no PC-relative addressing mode.  */
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
bca718
@@ -50,7 +50,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
bca718
@@ -179,7 +179,7 @@ ENTRY(__sigsetjmp)
bca718
 	;;
bca718
 	st8.nta [r2]=r25		// ar.unat
bca718
 	st8.nta [r3]=in0		// &__jmp_buf
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	;;
bca718
 #else
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
bca718
@@ -361,7 +361,7 @@
bca718
 #endif /* not __ASSEMBLER__ */
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h
bca718
@@ -23,7 +23,7 @@
bca718
 
bca718
 #ifdef SHARED
bca718
 
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 # define M68K_VDSO_SYMBOL(name) __rtld_##name
bca718
 # define STR_M68K_VDSO_SYMBOL(name) "__rtld_" #name
bca718
 # else
bca718
@@ -35,7 +35,7 @@
bca718
 
bca718
 /* We define __rtld_* copies for rtld.
bca718
    We need them visible in libc to initialize.  */
bca718
-#  if defined IS_IN_rtld || !defined NOT_IN_libc
bca718
+#  if IS_IN (rtld) || !defined NOT_IN_libc
bca718
 extern void *__rtld___vdso_read_tp;
bca718
 extern void *__rtld___vdso_atomic_cmpxchg_32;
bca718
 extern void *__rtld___vdso_atomic_barrier;
bca718
@@ -44,14 +44,14 @@ extern void *__rtld___vdso_atomic_barrie
bca718
 extern void __vdso_read_tp_stub (void);
bca718
 extern void __vdso_atomic_cmpxchg_32_stub (void);
bca718
 extern void __vdso_atomic_barrier_stub (void);
bca718
-#  endif /* IS_IN_rtld || !NOT_IN_libc */
bca718
+#  endif /* IS_IN (rtld) || !NOT_IN_libc */
bca718
 
bca718
 /* RTLD should only use its own copies.  */
bca718
-#  ifndef IS_IN_rtld
bca718
+#  if !IS_IN (rtld)
bca718
 extern void *__vdso_read_tp;
bca718
 extern void *__vdso_atomic_cmpxchg_32;
bca718
 extern void *__vdso_atomic_barrier;
bca718
-#  endif /* !IS_IN_rtld */
bca718
+#  endif /* !IS_IN (rtld) */
bca718
 
bca718
 # endif /* !__ASSEMBLER__ */
bca718
 
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/m68k-helpers.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/m68k/m68k-helpers.S
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/m68k-helpers.S
bca718
@@ -51,7 +51,7 @@ END (__vdso_read_tp_stub)
bca718
    equivalent helper function (which clobbers fewer registers than
bca718
    a normal function call) in a vdso; tail call to the
bca718
    helper.  */
bca718
-# ifdef IS_IN_rtld
bca718
+# if IS_IN (rtld)
bca718
 /* rtld gets a hidden copy of __m68k_read_tp.  */
bca718
 	.hidden __m68k_read_tp
bca718
 # endif
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
bca718
@@ -272,7 +272,7 @@
bca718
 
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
bca718
@@ -282,7 +282,7 @@
bca718
 
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
bca718
@@ -51,7 +51,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
bca718
@@ -367,7 +367,7 @@
bca718
     _ret; })
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
bca718
@@ -373,7 +373,7 @@
bca718
     _ret; })
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h
bca718
@@ -50,7 +50,7 @@
bca718
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sh/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
bca718
@@ -338,7 +338,7 @@
bca718
 #endif	/* __ASSEMBLER__ */
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  Using a global variable
bca718
    is too complicated here since we have no PC-relative addressing mode.  */
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h
bca718
@@ -56,7 +56,7 @@ extern void __cpu_relax (void);
bca718
 #define BUSY_WAIT_NOP	__cpu_relax ()
bca718
 #endif
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
bca718
@@ -22,7 +22,7 @@
bca718
 
bca718
 #include <sysdeps/unix/sysv/linux/sparc/sysdep.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>		/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 #include <tls.h>
bca718
@@ -126,7 +126,7 @@ ENTRY(name);					\
bca718
 #endif	/* __ASSEMBLER__ */
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
bca718
@@ -22,7 +22,7 @@
bca718
 
bca718
 #include <sysdeps/unix/sysv/linux/sparc/sysdep.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>		/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 #include <tls.h>
bca718
@@ -141,7 +141,7 @@ ENTRY(name);					\
bca718
 #define STACK_BIAS	2047
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/sysdep.h
bca718
@@ -205,7 +205,7 @@
bca718
 #endif /* not __ASSEMBLER__ */
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#if defined NOT_IN_libc && defined IS_IN_rtld
bca718
+#if defined NOT_IN_libc && IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 #else
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
bca718
@@ -72,7 +72,7 @@
bca718
 
bca718
 #ifndef __ASSEMBLER__
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/x86_64/sysdep.h
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
bca718
@@ -24,7 +24,7 @@
bca718
 #include <bp-asm.h>
bca718
 #include <tls.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>		/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 
bca718
@@ -395,7 +395,7 @@
bca718
 
bca718
 
bca718
 /* Pointer mangling support.  */
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* We cannot use the thread descriptor because in ld.so we use setjmp
bca718
    earlier than the descriptor is initialized.  */
bca718
 # ifdef __ASSEMBLER__
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/x86_64/sysdep.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/x86_64/sysdep.S
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/x86_64/sysdep.S
bca718
@@ -22,7 +22,7 @@
bca718
 #include <bp-sym.h>
bca718
 #include <tls.h>
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # include <dl-sysdep.h>		/* Defines RTLD_PRIVATE_ERRNO.  */
bca718
 #endif
bca718
 
bca718
Index: glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/setjmp.S
bca718
+++ glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
bca718
@@ -54,7 +54,7 @@ ENTRY (__sigsetjmp)
bca718
 #endif
bca718
 	movq %rax, (JB_PC*8)(%rdi)
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 	/* In ld.so we never save the signal mask.  */
bca718
 	xorl %eax, %eax
bca718
 	retq
bca718
Index: glibc-2.17-c758a686/include/unistd.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/include/unistd.h
bca718
+++ glibc-2.17-c758a686/include/unistd.h
bca718
@@ -151,7 +151,7 @@ libc_hidden_proto (__sbrk)
bca718
    environment variables that normally affect them.  */
bca718
 extern int __libc_enable_secure attribute_relro;
bca718
 extern int __libc_enable_secure_decided;
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 /* XXX The #ifdef should go.  */
bca718
 extern int __libc_enable_secure_internal attribute_relro attribute_hidden;
bca718
 #endif
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
bca718
@@ -27,7 +27,7 @@
bca718
    all the libc functions that ld.so uses are called without PLT and always
bca718
    get the versions linked into ld.so rather than the libc ones.  */
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # define RTLD_PRIVATE_ERRNO 1
bca718
 #else
bca718
 # define RTLD_PRIVATE_ERRNO 0
bca718
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
bca718
@@ -52,7 +52,7 @@
bca718
 #define LLL_PRIVATE	0
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h
bca718
@@ -49,7 +49,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
bca718
@@ -50,7 +50,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
bca718
@@ -48,7 +48,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h
bca718
@@ -27,7 +27,7 @@
bca718
    all the libc functions that ld.so uses are called without PLT and always
bca718
    get the versions linked into ld.so rather than the libc ones.  */
bca718
 
bca718
-#ifdef IS_IN_rtld
bca718
+#if IS_IN (rtld)
bca718
 # define RTLD_PRIVATE_ERRNO 1
bca718
 #else
bca718
 # define RTLD_PRIVATE_ERRNO 0
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
bca718
@@ -50,7 +50,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
bca718
@@ -48,7 +48,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h
bca718
@@ -50,7 +50,7 @@
bca718
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
bca718
 
bca718
 
bca718
-#if !defined NOT_IN_libc || defined IS_IN_rtld
bca718
+#if !defined NOT_IN_libc || IS_IN (rtld)
bca718
 /* In libc.so or ld.so all futexes are private.  */
bca718
 # ifdef __ASSUME_PRIVATE_FUTEX
bca718
 #  define __lll_private_flag(fl, private) \