diff options
Diffstat (limited to 'linuxthreads/errno.c')
-rw-r--r-- | linuxthreads/errno.c | 7 |
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); +} |