aboutsummaryrefslogtreecommitdiff
path: root/source/sys/posix/cstdlib.elna
diff options
context:
space:
mode:
Diffstat (limited to 'source/sys/posix/cstdlib.elna')
-rw-r--r--source/sys/posix/cstdlib.elna24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/sys/posix/cstdlib.elna b/source/sys/posix/cstdlib.elna
new file mode 100644
index 0000000..10a4d80
--- /dev/null
+++ b/source/sys/posix/cstdlib.elna
@@ -0,0 +1,24 @@
+(* This Source Code Form is subject to the terms of the Mozilla Public License,
+ v. 2.0. If a copy of the MPL was not distributed with this file, You can
+ obtain one at https://mozilla.org/MPL/2.0/. *)
+module
+
+proc malloc*#[T](size: Word) -> ^T
+extern
+
+proc free*#[T](ptr: ^T)
+extern
+
+proc calloc*#[T](nmemb: Word; size: Word) -> ^T
+extern
+
+proc realloc*#[T](ptr: ^T; size: Word) -> ^T
+extern
+
+proc atoi*(str: ^Word8) -> Int
+extern
+
+proc exit*(code: Int) #{noreturn}
+extern
+
+end.