aboutsummaryrefslogtreecommitdiff
path: root/source/sys/posix
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-11-06 23:23:28 +0100
committerEugen Wissner <belka@caraus.de>2026-11-06 23:23:28 +0100
commit39db5d5b89dfd2086d73d171487ab9f185a0adf0 (patch)
tree4b88c9ee55514c4bea293ae1ce32c9e74b0d2b03 /source/sys/posix
parent48a51628b841a9b69db846326dcaa67239a8559f (diff)
downloadelna-39db5d5b89dfd2086d73d171487ab9f185a0adf0.tar.gz
Tokenize traits
Diffstat (limited to 'source/sys/posix')
-rw-r--r--source/sys/posix/errno.elna8
-rw-r--r--source/sys/posix/stdio.elna6
-rw-r--r--source/sys/posix/stdlib.elna3
-rw-r--r--source/sys/posix/string.elna4
4 files changed, 19 insertions, 2 deletions
diff --git a/source/sys/posix/errno.elna b/source/sys/posix/errno.elna
new file mode 100644
index 0000000..7035ddf
--- /dev/null
+++ b/source/sys/posix/errno.elna
@@ -0,0 +1,8 @@
+(* 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
+
+import bits.errno*
+
+end.
diff --git a/source/sys/posix/stdio.elna b/source/sys/posix/stdio.elna
index dd7251d..39756a8 100644
--- a/source/sys/posix/stdio.elna
+++ b/source/sys/posix/stdio.elna
@@ -6,4 +6,10 @@ module
proc printf*(format: ^const Word8) #{varargs} -> Int
extern
+proc puts*(s: ^const Word8) -> Int
+extern
+
+proc putchar*(c: Int) -> Int
+extern
+
end.
diff --git a/source/sys/posix/stdlib.elna b/source/sys/posix/stdlib.elna
index d4b381e..568e1da 100644
--- a/source/sys/posix/stdlib.elna
+++ b/source/sys/posix/stdlib.elna
@@ -18,4 +18,7 @@ extern
proc strtoul*(str: ^const Word8; endptr: ^^Word8; base: Int) -> Word
extern
+proc strtoull*(str: ^const Word8; endptr: ^^Word8; base: Int) -> Word64
+extern
+
end.
diff --git a/source/sys/posix/string.elna b/source/sys/posix/string.elna
index ebe347c..561d975 100644
--- a/source/sys/posix/string.elna
+++ b/source/sys/posix/string.elna
@@ -3,13 +3,13 @@
obtain one at https://mozilla.org/MPL/2.0/. *)
module
-proc memset#[T]*(b: ^T; c: Int8; len: Word) -> ^T
+proc memset#[T]*(b: ^T; c: Int; len: Word) -> ^T
extern
proc memcpy#[T]*(dst: ^T; src: ^const T; n: Word) -> ^T
extern
-proc memchr#[T]*(s: ^T; c: Int8; n: Word) -> ^T
+proc memchr#[T]*(s: ^T; c: Int; n: Word) -> ^T
extern
end.