ce426f
commit 016afc75cd45dfaf49c0aa7a9befda77ab933846
ce426f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
ce426f
Date:   Thu Nov 20 13:26:25 2014 +0530
ce426f
ce426f
    Remove IS_IN_librt
ce426f
    
ce426f
    Replace with IS_IN (librt).  Generated code unchanged on x86_64
ce426f
    
ce426f
            * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
ce426f
            * nptl/pthreadP.h: Likewise.
ce426f
            * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.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/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/waitpid.S: Likewise.
ce426f
            * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
ce426f
ce426f
Index: glibc-2.17-c758a686/include/mqueue.h
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/include/mqueue.h
ce426f
+++ glibc-2.17-c758a686/include/mqueue.h
ce426f
@@ -1,6 +1,6 @@
ce426f
 #include <rt/mqueue.h>
ce426f
 
ce426f
-#ifdef IS_IN_librt
ce426f
+#if IS_IN (librt)
ce426f
 hidden_proto (mq_timedsend)
ce426f
 hidden_proto (mq_timedreceive)
ce426f
 hidden_proto (mq_setattr)
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
@@ -289,7 +289,7 @@ __do_cancel (void)
ce426f
 # define LIBC_CANCEL_HANDLED() \
ce426f
   __asm (".globl " __SYMBOL_PREFIX "__pthread_enable_asynccancel"); \
ce426f
   __asm (".globl " __SYMBOL_PREFIX "__pthread_disable_asynccancel")
ce426f
-#elif defined IS_IN_librt
ce426f
+#elif IS_IN (librt)
ce426f
 # define LIBC_CANCEL_ASYNC() \
ce426f
   __librt_enable_asynccancel ()
ce426f
 # define LIBC_CANCEL_RESET(val) \
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				\
ce426f
@@ -89,7 +89,7 @@ ENTRY (name);								\
ce426f
 #  define CENABLE	bl __libc_enable_asynccancel
ce426f
 #  define CDISABLE	bl __libc_disable_asynccancel
ce426f
 #  define __local_multiple_threads __libc_multiple_threads
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	bl __librt_enable_asynccancel
ce426f
 #  define CDISABLE	bl __librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined 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
@@ -194,7 +194,7 @@
ce426f
 #  define CENABLE	bl PLTJMP(__libc_enable_asynccancel)
ce426f
 #  define CDISABLE	bl PLTJMP(__libc_disable_asynccancel)
ce426f
 #  define __local_multiple_threads __libc_multiple_threads
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	bl PLTJMP(__librt_enable_asynccancel)
ce426f
 #  define CDISABLE	bl PLTJMP(__librt_disable_asynccancel)
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				      \
ce426f
@@ -114,7 +114,7 @@
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	call __libc_enable_asynccancel;
ce426f
 #  define CDISABLE	call __libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	call __librt_enable_asynccancel;
ce426f
 #  define CDISABLE	call __librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined 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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				\
ce426f
@@ -87,7 +87,7 @@
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	bl __libc_enable_asynccancel@local
ce426f
 #  define CDISABLE	bl __libc_disable_asynccancel@local
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	bl __librt_enable_asynccancel@local
ce426f
 #  define CDISABLE	bl __librt_disable_asynccancel@local
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
ce426f
 #  define DASHDASHPFX(str) .__##str
ce426f
@@ -115,7 +115,7 @@
ce426f
 #   define CENABLE	bl JUMPTARGET(__libc_enable_asynccancel); nop
ce426f
 #   define CDISABLE	bl JUMPTARGET(__libc_disable_asynccancel); nop
ce426f
 #  endif
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  ifdef SHARED
ce426f
 #   define CENABLE	bl JUMPTARGET(__librt_enable_asynccancel)
ce426f
 #   define CDISABLE	bl JUMPTARGET(__librt_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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				      \
ce426f
@@ -81,7 +81,7 @@ L(pseudo_end):
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	__libc_enable_asynccancel
ce426f
 #  define CDISABLE	__libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	__librt_enable_asynccancel
ce426f
 #  define CDISABLE	__librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				      \
ce426f
@@ -77,7 +77,7 @@ L(pseudo_end):
ce426f
 #  define CENABLE	__libc_enable_asynccancel
ce426f
 #  define CDISABLE	__libc_disable_asynccancel
ce426f
 #  define __local_multiple_threads	__libc_multiple_threads
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	__librt_enable_asynccancel
ce426f
 #  define CDISABLE	__librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined 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
@@ -67,7 +67,7 @@
ce426f
 #  define CENABLE	call __libc_enable_asynccancel;
ce426f
 #  define CDISABLE	call __libc_disable_asynccancel;
ce426f
 #  define __local_multiple_threads __libc_multiple_threads
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	call __librt_enable_asynccancel;
ce426f
 #  define CDISABLE	call __librt_disable_asynccancel;
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined 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/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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # define _IMM12 #-12
ce426f
 # define _IMM16 #-16
ce426f
@@ -111,7 +111,7 @@
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define __local_enable_asynccancel	__libc_enable_asynccancel
ce426f
 #  define __local_disable_asynccancel	__libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define __local_enable_asynccancel	__librt_enable_asynccancel
ce426f
 #  define __local_disable_asynccancel	__librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)	\
ce426f
@@ -74,7 +74,7 @@ __##syscall_name##_nocancel:			\
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	call __libc_enable_asynccancel
ce426f
 #  define CDISABLE	call __libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	call __librt_enable_asynccancel
ce426f
 #  define CDISABLE	call __librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)	\
ce426f
@@ -72,7 +72,7 @@ __##syscall_name##_nocancel:			\
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	call __libc_enable_asynccancel
ce426f
 #  define CDISABLE	call __libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	call __librt_enable_asynccancel
ce426f
 #  define CDISABLE	call __librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 /* ??? Assumes that nothing comes between PSEUDO and PSEUDO_END
ce426f
    besides "ret".  */
ce426f
@@ -113,7 +113,7 @@ __LABEL($multi_error)						\
ce426f
 #  define __local_enable_asynccancel	__libc_enable_asynccancel
ce426f
 #  define __local_disable_asynccancel	__libc_disable_asynccancel
ce426f
 #  define __local_multiple_threads	__libc_multiple_threads
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define __local_enable_asynccancel	__librt_enable_asynccancel
ce426f
 #  define __local_disable_asynccancel	__librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				\
ce426f
@@ -82,7 +82,7 @@
ce426f
 # ifdef IS_IN_libpthread
ce426f
 #  define CENABLE	call __pthread_enable_asynccancel,[],0;
ce426f
 #  define CDISABLE	call __pthread_disable_asynccancel,[],0;
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  ifdef PIC
ce426f
 #   define CENABLE	movm [a2],(sp); \
ce426f
 			1: mov pc,a2; \
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # ifndef NO_ERROR
ce426f
 #  define NO_ERROR -0x1000
ce426f
@@ -228,7 +228,7 @@ L(pre_end):						ASM_LINE_SEP	\
ce426f
 #   define CDISABLE	.import __libc_disable_asynccancel,code ASM_LINE_SEP \
ce426f
 			bl __libc_disable_asynccancel,%r2 ASM_LINE_SEP
ce426f
 #  endif
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  ifdef PIC
ce426f
 #   define CENABLE .import __librt_enable_asynccancel,code ASM_LINE_SEP \
ce426f
 			bl __librt_enable_asynccancel,%r2 ASM_LINE_SEP
ce426f
@@ -248,7 +248,7 @@ L(pre_end):						ASM_LINE_SEP	\
ce426f
 #  define __local_multiple_threads __pthread_multiple_threads
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define __local_multiple_threads __libc_multiple_threads
ce426f
-# elif IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define __local_multiple_threads __librt_multiple_threads
ce426f
 # else
ce426f
 #  error Unsupported library
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 || defined IS_IN_librt */
ce426f
+/* !defined NOT_IN_libc || defined 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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 
ce426f
@@ -166,7 +166,7 @@ __GC_##name:								      \
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	br.call.sptk.many b0 = __libc_enable_asynccancel
ce426f
 #  define CDISABLE	br.call.sptk.many b0 = __libc_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	br.call.sptk.many b0 = __librt_enable_asynccancel
ce426f
 #  define CDISABLE	br.call.sptk.many b0 = __librt_disable_asynccancel
ce426f
 # else
ce426f
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
ce426f
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
ce426f
@@ -62,7 +62,7 @@
ce426f
 
ce426f
 #if defined USE_DL_SYSINFO \
ce426f
 	&& (!defined NOT_IN_libc \
ce426f
-	    || IS_IN (libpthread) || defined IS_IN_librt)
ce426f
+	    || IS_IN (libpthread) || IS_IN (librt))
ce426f
 # define IA64_USE_NEW_STUB
ce426f
 #else
ce426f
 # undef IA64_USE_NEW_STUB
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # undef PSEUDO
ce426f
 # define PSEUDO(name, syscall_name, args)				      \
ce426f
@@ -106,7 +106,7 @@
ce426f
 # elif !defined NOT_IN_libc
ce426f
 #  define CENABLE	PSEUDO_JMP (__libc_enable_asynccancel)
ce426f
 #  define CDISABLE	PSEUDO_JMP (__libc_disable_asynccancel)
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	PSEUDO_JMP (__librt_enable_asynccancel)
ce426f
 #  define CDISABLE	PSEUDO_JMP (__librt_disable_asynccancel)
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 #ifdef __PIC__
ce426f
 # undef PSEUDO
ce426f
@@ -149,7 +149,7 @@
ce426f
 # ifdef 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 defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	PTR_LA t9, __librt_enable_asynccancel; jalr t9
ce426f
 #  define CDISABLE	PTR_LA t9, __librt_disable_asynccancel; jalr t9
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 # ifdef __PIC__
ce426f
 #  define PSEUDO_CPLOAD .cpload t9;
ce426f
@@ -155,7 +155,7 @@
ce426f
 # ifdef IS_IN_libpthread
ce426f
 #  define CENABLE	PSEUDO_JMP (__pthread_enable_asynccancel)
ce426f
 #  define CDISABLE	PSEUDO_JMP (__pthread_disable_asynccancel)
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	PSEUDO_JMP (__librt_enable_asynccancel)
ce426f
 #  define CDISABLE	PSEUDO_JMP (__librt_disable_asynccancel)
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
ce426f
 
ce426f
 /* Allow hacking in some extra code if desired. */
ce426f
 #ifndef PSEUDO_EXTRA
ce426f
@@ -120,7 +120,7 @@
ce426f
 # ifdef IS_IN_libpthread
ce426f
 #  define CENABLE	jal __pthread_enable_asynccancel
ce426f
 #  define CDISABLE	jal __pthread_disable_asynccancel
ce426f
-# elif defined IS_IN_librt
ce426f
+# elif IS_IN (librt)
ce426f
 #  define CENABLE	jal __librt_enable_asynccancel
ce426f
 #  define CDISABLE	jal __librt_disable_asynccancel
ce426f
 # else
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 || defined IS_IN_librt
ce426f
+#if !defined NOT_IN_libc || defined 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;