aboutsummaryrefslogtreecommitdiff
path: root/source/sys
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-11-18 00:10:23 +0100
committerEugen Wissner <belka@caraus.de>2026-11-20 00:08:40 +0100
commitd4681529c20d5cb2630bfe09f4cf4c4ca4c98a23 (patch)
treed11bc100c2e35fe7ee8e84837d8e2826e4b8731e /source/sys
parent9b4b13e0d9030bb21c86eea6c4ba00bf4d91f0a0 (diff)
downloadelna-cpp.tar.gz
Restrict pointer subtraction by typeHEADcpp
Diffstat (limited to 'source/sys')
-rw-r--r--source/sys/posix/stdio.elna3
-rw-r--r--source/sys/posix/stdlib.elna6
2 files changed, 9 insertions, 0 deletions
diff --git a/source/sys/posix/stdio.elna b/source/sys/posix/stdio.elna
index c667f43..3635b7c 100644
--- a/source/sys/posix/stdio.elna
+++ b/source/sys/posix/stdio.elna
@@ -11,6 +11,9 @@ extern
proc printf*(format: ^const CChar) #{varargs} -> CInt
extern
+proc snprintf*(str: ^CChar; size: Word; format: ^const CChar) #{varargs} -> CInt
+extern
+
proc fputs*(s: ^const CChar; stream: ^FILE) -> CInt
extern
diff --git a/source/sys/posix/stdlib.elna b/source/sys/posix/stdlib.elna
index 272400a..ce49155 100644
--- a/source/sys/posix/stdlib.elna
+++ b/source/sys/posix/stdlib.elna
@@ -32,4 +32,10 @@ extern
proc strtod*(nptr: ^const CChar; endptr: ^^CChar) -> Double
extern
+proc exit*(status: CInt) #{noreturn}
+extern
+
+proc sprintf*(str: ^CChar; format: ^const CChar) #{varargs} -> CInt
+extern
+
end.