summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/headers/public/__header_stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/headers/public/__header_stdlib.h')
-rw-r--r--libc-bottom-half/headers/public/__header_stdlib.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libc-bottom-half/headers/public/__header_stdlib.h b/libc-bottom-half/headers/public/__header_stdlib.h
new file mode 100644
index 0000000..a6c49a5
--- /dev/null
+++ b/libc-bottom-half/headers/public/__header_stdlib.h
@@ -0,0 +1,21 @@
+#ifndef __wasilibc___header_stdlib_h
+#define __wasilibc___header_stdlib_h
+
+#define __need_size_t
+#include <stddef.h>
+
+#include <__functions_malloc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void abort(void) __attribute__((__noreturn__));
+void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
+void _Exit(int) __attribute__((__noreturn__));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif