__errno_location.c 166 B

123456789
  1. #include <errno.h>
  2. #include "pthread_impl.h"
  3. int *__errno_location(void)
  4. {
  5. return &__pthread_self()->errno_val;
  6. }
  7. weak_alias(__errno_location, ___errno_location);