aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/errno.c')
-rw-r--r--linuxthreads/errno.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linuxthreads/errno.c b/linuxthreads/errno.c
index 7464748..bd9584f 100644
--- a/linuxthreads/errno.c
+++ b/linuxthreads/errno.c
@@ -30,3 +30,10 @@ int * __h_errno_location()
pthread_descr self = thread_self();
return THREAD_GETMEM (self, p_h_errnop);
}
+
+/* Return thread specific resolver state. */
+struct __res_state * __res_state()
+{
+ pthread_descr self = thread_self();
+ return THREAD_GETMEM (self, p_resp);
+}