]> sourceware.org Git - glibc.git/blobdiff - linuxthreads/errno.c
Update.
[glibc.git] / linuxthreads / errno.c
index 746474860c4c910115bb108622a46ba78ec18123..5c0e8767a181137b08abf8023b43568d113cc02b 100644 (file)
 
 #include <errno.h>
 #include <netdb.h>
+#include <resolv.h>
+#include <tls.h>
 #include "pthread.h"
 #include "internals.h"
 
-int * __errno_location()
+#if !USE_TLS || !HAVE___THREAD
+/* The definition in libc is sufficient if we use TLS.  */
+int *
+__errno_location (void)
 {
   pthread_descr self = thread_self();
   return THREAD_GETMEM (self, p_errnop);
 }
 
-int * __h_errno_location()
+int *
+__h_errno_location (void)
 {
   pthread_descr self = thread_self();
   return THREAD_GETMEM (self, p_h_errnop);
 }
+
+/* Return thread specific resolver state.  */
+struct __res_state *
+__res_state (void)
+{
+  pthread_descr self = thread_self();
+  return THREAD_GETMEM (self, p_resp);
+}
+#endif
This page took 0.028954 seconds and 5 git commands to generate.