diff options
Diffstat (limited to 'src/errno/__errno_location.c')
| -rw-r--r-- | src/errno/__errno_location.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/errno/__errno_location.c b/src/errno/__errno_location.c new file mode 100644 index 0000000..7f9d602 --- /dev/null +++ b/src/errno/__errno_location.c @@ -0,0 +1,9 @@ +#include <errno.h> +#include "pthread_impl.h" + +int *__errno_location(void) +{ + return &__pthread_self()->errno_val; +} + +weak_alias(__errno_location, ___errno_location); |
