diff options
Diffstat (limited to 'libc-top-half/musl/src/errno/__errno_location.c')
-rw-r--r-- | libc-top-half/musl/src/errno/__errno_location.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/errno/__errno_location.c b/libc-top-half/musl/src/errno/__errno_location.c new file mode 100644 index 0000000..7f9d602 --- /dev/null +++ b/libc-top-half/musl/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); |