Back to index

glibc  2.9
Functions
res-state.c File Reference
#include <resolv.h>
#include <tls.h>
#include <linuxthreads/internals.h>
#include <sysdep-cancel.h>

Go to the source code of this file.

Functions

struct __res_state
*weak_const_function 
__res_state (void)

Function Documentation

struct __res_state* weak_const_function __res_state ( void  ) [read]

Definition at line 34 of file res-state.c.

{
#if ! USE___THREAD
  if (! SINGLE_THREAD_P)
    {
      pthread_descr self = thread_self();
      return LIBC_THREAD_GETMEM (self, p_resp);
    }
  return &_res;
#else
  return __resp;
#endif
}