summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/sources/__errno_location.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/sources/__errno_location.c')
-rw-r--r--libc-bottom-half/sources/__errno_location.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-bottom-half/sources/__errno_location.c b/libc-bottom-half/sources/__errno_location.c
new file mode 100644
index 0000000..5e6ef5e
--- /dev/null
+++ b/libc-bottom-half/sources/__errno_location.c
@@ -0,0 +1,5 @@
+#include <errno.h>
+
+int *__errno_location(void) {
+ return &errno;
+}