From a3e27d361919392eeb0086ed93b105d8301c7913 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 19:31:06 +0200 Subject: user: move the POSIX-y stuff to the proper header files --- src/user/lib/stdlib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/user/lib/stdlib.c') diff --git a/src/user/lib/stdlib.c b/src/user/lib/stdlib.c index 943af01..c998de7 100644 --- a/src/user/lib/stdlib.c +++ b/src/user/lib/stdlib.c @@ -1,12 +1,15 @@ #include #include -#include +#include +#include +#include +#include // TODO oh god this garbage - malloc, actually open, [...] static libc_file _stdin_null = { .fd = 0 }; static libc_file _stdout_null = { .fd = 1 }; -libc_file *stdin = &_stdin_null, *stdout = &_stdout_null; +libc_file *const stdin = &_stdin_null, *const stdout = &_stdout_null; static void backend_file(void *arg, const char *buf, size_t len) { file_write((libc_file*)arg, buf, len); -- cgit v1.2.3