|
|
bca718 |
commit 016afc75cd45dfaf49c0aa7a9befda77ab933846
|
|
|
bca718 |
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
|
|
|
bca718 |
Date: Thu Nov 20 13:26:25 2014 +0530
|
|
|
bca718 |
|
|
|
bca718 |
Remove IS_IN_librt
|
|
|
bca718 |
|
|
|
bca718 |
Replace with IS_IN (librt). Generated code unchanged on x86_64
|
|
|
bca718 |
|
|
|
bca718 |
* include/mqueue.h: Use IS_IN instead of IS_IN_librt.
|
|
|
bca718 |
* nptl/pthreadP.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
|
|
|
bca718 |
|
|
|
bca718 |
Index: glibc-2.17-c758a686/include/mqueue.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/include/mqueue.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/include/mqueue.h
|
|
|
bca718 |
@@ -1,6 +1,6 @@
|
|
|
bca718 |
#include <rt/mqueue.h>
|
|
|
bca718 |
|
|
|
bca718 |
-#ifdef IS_IN_librt
|
|
|
bca718 |
+#if IS_IN (librt)
|
|
|
bca718 |
hidden_proto (mq_timedsend)
|
|
|
bca718 |
hidden_proto (mq_timedreceive)
|
|
|
bca718 |
hidden_proto (mq_setattr)
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/pthreadP.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/pthreadP.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/pthreadP.h
|
|
|
bca718 |
@@ -289,7 +289,7 @@ __do_cancel (void)
|
|
|
bca718 |
# define LIBC_CANCEL_HANDLED() \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__pthread_enable_asynccancel"); \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__pthread_disable_asynccancel")
|
|
|
bca718 |
-#elif defined IS_IN_librt
|
|
|
bca718 |
+#elif IS_IN (librt)
|
|
|
bca718 |
# define LIBC_CANCEL_ASYNC() \
|
|
|
bca718 |
__librt_enable_asynccancel ()
|
|
|
bca718 |
# define LIBC_CANCEL_RESET(val) \
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -89,7 +89,7 @@ ENTRY (name); \
|
|
|
bca718 |
# define CENABLE bl __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE bl __libc_disable_asynccancel
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE bl __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE bl __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -21,7 +21,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
/* NOTE: We do mark syscalls with unwind annotations, for the benefit of
|
|
|
bca718 |
cancellation; but they're really only accurate at the point of the
|
|
|
bca718 |
@@ -194,7 +194,7 @@
|
|
|
bca718 |
# define CENABLE bl PLTJMP(__libc_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE bl PLTJMP(__libc_disable_asynccancel)
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE bl PLTJMP(__librt_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE bl PLTJMP(__librt_disable_asynccancel)
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -114,7 +114,7 @@
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE call __libc_enable_asynccancel;
|
|
|
bca718 |
# define CDISABLE call __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE call __librt_enable_asynccancel;
|
|
|
bca718 |
# define CDISABLE call __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/not-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/not-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/not-cancel.h
|
|
|
bca718 |
@@ -27,7 +27,7 @@
|
|
|
bca718 |
INLINE_SYSCALL (open, 2, (const char *) (name), (flags))
|
|
|
bca718 |
|
|
|
bca718 |
/* Uncancelable openat. */
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
extern int __openat_nocancel (int fd, const char *fname, int oflag,
|
|
|
bca718 |
mode_t mode) attribute_hidden;
|
|
|
bca718 |
extern int __openat64_nocancel (int fd, const char *fname, int oflag,
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
|
|
|
bca718 |
@@ -23,7 +23,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -87,7 +87,7 @@
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE bl __libc_enable_asynccancel@local
|
|
|
bca718 |
# define CDISABLE bl __libc_disable_asynccancel@local
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE bl __librt_enable_asynccancel@local
|
|
|
bca718 |
# define CDISABLE bl __librt_disable_asynccancel@local
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
|
|
|
bca718 |
@@ -23,7 +23,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# ifdef HAVE_ASM_GLOBAL_DOT_NAME
|
|
|
bca718 |
# define DASHDASHPFX(str) .__##str
|
|
|
bca718 |
@@ -115,7 +115,7 @@
|
|
|
bca718 |
# define CENABLE bl JUMPTARGET(__libc_enable_asynccancel); nop
|
|
|
bca718 |
# define CDISABLE bl JUMPTARGET(__libc_disable_asynccancel); nop
|
|
|
bca718 |
# endif
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# ifdef SHARED
|
|
|
bca718 |
# define CENABLE bl JUMPTARGET(__librt_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE bl JUMPTARGET(__librt_disable_asynccancel)
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -81,7 +81,7 @@ L(pseudo_end):
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -77,7 +77,7 @@ L(pseudo_end):
|
|
|
bca718 |
# define CENABLE __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE __libc_disable_asynccancel
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
/* The code to disable cancellation depends on the fact that the called
|
|
|
bca718 |
functions are special. They don't modify registers other than %rax
|
|
|
bca718 |
@@ -67,7 +67,7 @@
|
|
|
bca718 |
# define CENABLE call __libc_enable_asynccancel;
|
|
|
bca718 |
# define CDISABLE call __libc_disable_asynccancel;
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE call __librt_enable_asynccancel;
|
|
|
bca718 |
# define CDISABLE call __librt_disable_asynccancel;
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h
|
|
|
bca718 |
@@ -19,7 +19,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#include <sysdep.h>
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
extern int __open_nocancel (const char *, int, ...) attribute_hidden;
|
|
|
bca718 |
extern int __close_nocancel (int) attribute_hidden;
|
|
|
bca718 |
extern int __read_nocancel (int, void *, size_t) attribute_hidden;
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
|
|
|
bca718 |
@@ -21,7 +21,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# define _IMM12 #-12
|
|
|
bca718 |
# define _IMM16 #-16
|
|
|
bca718 |
@@ -111,7 +111,7 @@
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define __local_enable_asynccancel __libc_enable_asynccancel
|
|
|
bca718 |
# define __local_disable_asynccancel __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define __local_enable_asynccancel __librt_enable_asynccancel
|
|
|
bca718 |
# define __local_disable_asynccancel __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -74,7 +74,7 @@ __##syscall_name##_nocancel: \
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE call __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE call __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE call __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE call __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -72,7 +72,7 @@ __##syscall_name##_nocancel: \
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE call __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE call __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE call __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE call __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -21,7 +21,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
/* ??? Assumes that nothing comes between PSEUDO and PSEUDO_END
|
|
|
bca718 |
besides "ret". */
|
|
|
bca718 |
@@ -113,7 +113,7 @@ __LABEL($multi_error) \
|
|
|
bca718 |
# define __local_enable_asynccancel __libc_enable_asynccancel
|
|
|
bca718 |
# define __local_disable_asynccancel __libc_disable_asynccancel
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define __local_enable_asynccancel __librt_enable_asynccancel
|
|
|
bca718 |
# define __local_disable_asynccancel __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
|
|
|
bca718 |
@@ -23,7 +23,7 @@
|
|
|
bca718 |
# include <linuxthreads/internals.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -82,7 +82,7 @@
|
|
|
bca718 |
# ifdef IS_IN_libpthread
|
|
|
bca718 |
# define CENABLE call __pthread_enable_asynccancel,[],0;
|
|
|
bca718 |
# define CDISABLE call __pthread_disable_asynccancel,[],0;
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# ifdef PIC
|
|
|
bca718 |
# define CENABLE movm [a2],(sp); \
|
|
|
bca718 |
1: mov pc,a2; \
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# ifndef NO_ERROR
|
|
|
bca718 |
# define NO_ERROR -0x1000
|
|
|
bca718 |
@@ -228,7 +228,7 @@ L(pre_end): ASM_LINE_SEP \
|
|
|
bca718 |
# define CDISABLE .import __libc_disable_asynccancel,code ASM_LINE_SEP \
|
|
|
bca718 |
bl __libc_disable_asynccancel,%r2 ASM_LINE_SEP
|
|
|
bca718 |
# endif
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# ifdef PIC
|
|
|
bca718 |
# define CENABLE .import __librt_enable_asynccancel,code ASM_LINE_SEP \
|
|
|
bca718 |
bl __librt_enable_asynccancel,%r2 ASM_LINE_SEP
|
|
|
bca718 |
@@ -248,7 +248,7 @@ L(pre_end): ASM_LINE_SEP \
|
|
|
bca718 |
# define __local_multiple_threads __pthread_multiple_threads
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define __local_multiple_threads __libc_multiple_threads
|
|
|
bca718 |
-# elif IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define __local_multiple_threads __librt_multiple_threads
|
|
|
bca718 |
# else
|
|
|
bca718 |
# error Unsupported library
|
|
|
bca718 |
@@ -271,7 +271,7 @@ L(pre_end): ASM_LINE_SEP \
|
|
|
bca718 |
# define NO_CANCELLATION 1
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
-/* !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt */
|
|
|
bca718 |
+/* !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt) */
|
|
|
bca718 |
|
|
|
bca718 |
#ifndef __ASSEMBLER__
|
|
|
bca718 |
# define RTLD_SINGLE_THREAD_P \
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
|
|
|
bca718 |
@@ -166,7 +166,7 @@ __GC_##name: \
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE br.call.sptk.many b0 = __libc_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE br.call.sptk.many b0 = __libc_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE br.call.sptk.many b0 = __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE br.call.sptk.many b0 = __librt_disable_asynccancel
|
|
|
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 |
@@ -62,7 +62,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#if defined USE_DL_SYSINFO \
|
|
|
bca718 |
&& (!defined NOT_IN_libc \
|
|
|
bca718 |
- || IS_IN (libpthread) || defined IS_IN_librt)
|
|
|
bca718 |
+ || IS_IN (libpthread) || IS_IN (librt))
|
|
|
bca718 |
# define IA64_USE_NEW_STUB
|
|
|
bca718 |
#else
|
|
|
bca718 |
# undef IA64_USE_NEW_STUB
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
# define PSEUDO(name, syscall_name, args) \
|
|
|
bca718 |
@@ -106,7 +106,7 @@
|
|
|
bca718 |
# elif !defined NOT_IN_libc
|
|
|
bca718 |
# define CENABLE PSEUDO_JMP (__libc_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE PSEUDO_JMP (__libc_disable_asynccancel)
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE PSEUDO_JMP (__librt_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE PSEUDO_JMP (__librt_disable_asynccancel)
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -27,7 +27,7 @@
|
|
|
bca718 |
happen before any instructions. So we use cfi_same_value instead of
|
|
|
bca718 |
cfi_restore. */
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef __PIC__
|
|
|
bca718 |
# undef PSEUDO
|
|
|
bca718 |
@@ -149,7 +149,7 @@
|
|
|
bca718 |
# ifdef IS_IN_libpthread
|
|
|
bca718 |
# define CENABLE PTR_LA t9, __pthread_enable_asynccancel; jalr t9
|
|
|
bca718 |
# define CDISABLE PTR_LA t9, __pthread_disable_asynccancel; jalr t9
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE PTR_LA t9, __librt_enable_asynccancel; jalr t9
|
|
|
bca718 |
# define CDISABLE PTR_LA t9, __librt_disable_asynccancel; jalr t9
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
# ifdef __PIC__
|
|
|
bca718 |
# define PSEUDO_CPLOAD .cpload t9;
|
|
|
bca718 |
@@ -155,7 +155,7 @@
|
|
|
bca718 |
# ifdef IS_IN_libpthread
|
|
|
bca718 |
# define CENABLE PSEUDO_JMP (__pthread_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE PSEUDO_JMP (__pthread_disable_asynccancel)
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE PSEUDO_JMP (__librt_enable_asynccancel)
|
|
|
bca718 |
# define CDISABLE PSEUDO_JMP (__librt_disable_asynccancel)
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h
|
|
|
bca718 |
@@ -22,7 +22,7 @@
|
|
|
bca718 |
# include <nptl/pthreadP.h>
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
/* Allow hacking in some extra code if desired. */
|
|
|
bca718 |
#ifndef PSEUDO_EXTRA
|
|
|
bca718 |
@@ -120,7 +120,7 @@
|
|
|
bca718 |
# ifdef IS_IN_libpthread
|
|
|
bca718 |
# define CENABLE jal __pthread_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE jal __pthread_disable_asynccancel
|
|
|
bca718 |
-# elif defined IS_IN_librt
|
|
|
bca718 |
+# elif IS_IN (librt)
|
|
|
bca718 |
# define CENABLE jal __librt_enable_asynccancel
|
|
|
bca718 |
# define CDISABLE jal __librt_disable_asynccancel
|
|
|
bca718 |
# else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/tile/nptl/waitpid.S
|
|
|
bca718 |
@@ -1,7 +1,7 @@
|
|
|
bca718 |
/*
|
|
|
bca718 |
extern pid_t __waitpid_nocancel (pid_t, int *, int) attribute_hidden;
|
|
|
bca718 |
*/
|
|
|
bca718 |
-#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
|
|
|
bca718 |
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || IS_IN (librt)
|
|
|
bca718 |
|
|
|
bca718 |
/* Call __NR_wait4, providing fourth argument (struct rusage *) as NULL. */
|
|
|
bca718 |
#define PSEUDO_EXTRA move r3, zero;
|