__errno_location.c 153 B

12345678
  1. #include "pthread_impl.h"
  2. int *__errno_location(void)
  3. {
  4. static int e;
  5. if (libc.has_thread_pointer) return &__pthread_self()->errno_val;
  6. return &e;
  7. }