Back to index

glibc  2.9
Functions | Variables
errno-loc.c File Reference
#include <errno.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 __errno_location (void)

Variables

int errno

Function Documentation

Definition at line 35 of file errno-loc.c.

{
#if ! USE___THREAD && !defined NOT_IN_libc
  if (! SINGLE_THREAD_P)
    {
      pthread_descr self = thread_self();
      return LIBC_THREAD_GETMEM (self, p_errnop);
    }
#endif
  return &errno;
}

Variable Documentation

Definition at line 22 of file sysdep.c.