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