__errno_location.c 145 B

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