Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-27 15:00:30 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-07-27 15:00:30 +0300
commit10a30e7a258f112c1ada37b12cee924c8575c8d2 (patch)
treefe45e9d67979b61fde3bece2db7011e12f6e41ec
parent886f89ac39b31be908f50ff8482be8e34105f8e7 (diff)
Remove redundant macro and function called `__getreent'
Just rely on the inline version in include/cygwin/config.h Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/cygtls.h2
-rw-r--r--winsup/cygwin/thread.cc7
2 files changed, 0 insertions, 9 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 2a9f8f3fa..39dba1380 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -436,6 +436,4 @@ public:
_cygtls::call_signal_handler. */
~wait_signal_arrived () { _my_tls.unwait_signal_arrived (); }
};
-
-#define __getreent() (&_my_tls.local_clib)
/*gentls_offsets*/
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 4414785ad..d9271fc4b 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -80,13 +80,6 @@ pthread_mutex::no_owner()
return res;
}
-#undef __getreent
-extern "C" struct _reent *
-__getreent ()
-{
- return &_my_tls.local_clib;
-}
-
extern "C" void
__cygwin_lock_init (_LOCK_T *lock)
{