Back to index

glibc  2.9
Functions | Variables
herrno-loc.c File Reference
#include <netdb.h>
#include <tls.h>
#include <linuxthreads/internals.h>
#include <sysdep-cancel.h>

Go to the source code of this file.

Functions

int *weak_const_function __h_errno_location (void)

Variables

int h_errno

Function Documentation

Definition at line 32 of file herrno-loc.c.

{
#if ! USE___THREAD
  if (! SINGLE_THREAD_P)
    {
      pthread_descr self = thread_self();
      return LIBC_THREAD_GETMEM (self, p_h_errnop);
    }
#endif
  return &h_errno;
}

Variable Documentation