summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/sources/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/sources/errno.c')
-rw-r--r--libc-bottom-half/sources/errno.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-bottom-half/sources/errno.c b/libc-bottom-half/sources/errno.c
new file mode 100644
index 0000000..4e98a5b
--- /dev/null
+++ b/libc-bottom-half/sources/errno.c
@@ -0,0 +1,5 @@
+#include <errno.h>
+
+// These values are used by reference-sysroot's dlmalloc.
+const int __EINVAL = EINVAL;
+const int __ENOMEM = ENOMEM;