From 81043b67437445dcf83055098490e04cc88ff7ee Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 17 Oct 2026 23:50:44 +0200 Subject: Fix slice comparison by contents --- source/sys/posix/stdio.elna | 9 +++++++++ source/sys/posix/stdlib.elna | 9 +++++++++ source/sys/posix/string.elna | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 source/sys/posix/stdio.elna create mode 100644 source/sys/posix/stdlib.elna create mode 100644 source/sys/posix/string.elna (limited to 'source/sys/posix') diff --git a/source/sys/posix/stdio.elna b/source/sys/posix/stdio.elna new file mode 100644 index 0000000..dd7251d --- /dev/null +++ b/source/sys/posix/stdio.elna @@ -0,0 +1,9 @@ +(* 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 printf*(format: ^const Word8) #{varargs} -> Int +extern + +end. diff --git a/source/sys/posix/stdlib.elna b/source/sys/posix/stdlib.elna new file mode 100644 index 0000000..0016d9c --- /dev/null +++ b/source/sys/posix/stdlib.elna @@ -0,0 +1,9 @@ +(* 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 + +end. diff --git a/source/sys/posix/string.elna b/source/sys/posix/string.elna new file mode 100644 index 0000000..9994679 --- /dev/null +++ b/source/sys/posix/string.elna @@ -0,0 +1,9 @@ +(* 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 memset#[T]*(b: ^T; c: Int8; len: Word) -> ^T +extern + +end. -- cgit v1.2.3