summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/errno.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-14 23:04:02 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-14 23:04:02 -0600
commite1e46622ac0fce73d802fa4a8a2e83cc25cd9e7a (patch)
tree2c8d14e4dcc733f4227f0984ed05da5826b13acd /libpthread/linuxthreads/errno.c
parent6b6ede3d15f04fe825cfa9f697507457e3640344 (diff)
Revert "resolve merge"
This reverts commit 6b6ede3d15f04fe825cfa9f697507457e3640344.
Diffstat (limited to 'libpthread/linuxthreads/errno.c')
-rw-r--r--libpthread/linuxthreads/errno.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/errno.c b/libpthread/linuxthreads/errno.c
index 748c1d512..b8d9eb343 100644
--- a/libpthread/linuxthreads/errno.c
+++ b/libpthread/linuxthreads/errno.c
@@ -16,10 +16,12 @@
#include <errno.h>
#include <netdb.h>
+#include <resolv.h>
#include "pthread.h"
#include "internals.h"
-#include <stdio.h>
+#ifndef __UCLIBC_HAS_TLS__
+/* The definition in libc is sufficient if we use TLS. */
int *
__errno_location (void)
{
@@ -33,3 +35,14 @@ __h_errno_location (void)
pthread_descr self = thread_self();
return THREAD_GETMEM (self, p_h_errnop);
}
+
+#if 0
+/* Return thread specific resolver state. */
+struct __res_state *
+__res_state (void)
+{
+ pthread_descr self = thread_self();
+ return THREAD_GETMEM (self, p_resp);
+}
+#endif
+#endif