123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #include <errno.h>
- #include <netdb.h>
- #include <resolv.h>
- #include "pthread.h"
- #include "internals.h"
- #if !USE_TLS || !HAVE___THREAD
- int *
- __errno_location (void)
- {
- pthread_descr self = thread_self();
- return THREAD_GETMEM (self, p_errnop);
- }
- int *
- __h_errno_location (void)
- {
- pthread_descr self = thread_self();
- return THREAD_GETMEM (self, p_h_errnop);
- }
- #if 0
- struct __res_state *
- __res_state (void)
- {
- pthread_descr self = thread_self();
- return THREAD_GETMEM (self, p_resp);
- }
- #endif
- #endif
|