From a10aabfcd52f702057316018cd7847ab2bfe4aa1 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 26 May 2026 21:32:27 +0000 Subject: we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra. --- lib/stdio.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lib/stdio.c (limited to 'lib/stdio.c') diff --git a/lib/stdio.c b/lib/stdio.c deleted file mode 100644 index 70cc685..0000000 --- a/lib/stdio.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include - -struct FILE -{ - int fd; -}; - -static FILE stdin_stream = { STDIN_FILENO }; -static FILE stdout_stream = { STDOUT_FILENO }; -static FILE stderr_stream = { STDERR_FILENO }; - -FILE *stdin = &stdin_stream; -FILE *stdout = &stdout_stream; -FILE *stderr = &stderr_stream; - -int fputc(int c, FILE *f) -{ - write(f->fd, (const char *)&c, 1); - return 1; -} - -int fputs(const char *s, FILE *f) -{ - size_t slen = strlen(s); - write(f->fd, s, slen); - return (int)slen; -} - -- cgit v1.3.1-1-g115d