From 3ae251a204748a2f1c4c2af6c55e73d5e5159d0f Mon Sep 17 00:00:00 2001 From: Anton Kling <anton@kling.gg> Date: Tue, 24 Oct 2023 13:50:36 +0200 Subject: LibC: Allocate stdin, stdout, stderr on the heap so they can be closed with fclose --- userland/libc/stdio/stdin.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'userland/libc/stdio/stdin.c') diff --git a/userland/libc/stdio/stdin.c b/userland/libc/stdio/stdin.c index 2e1e50f..e84ea7e 100644 --- a/userland/libc/stdio/stdin.c +++ b/userland/libc/stdio/stdin.c @@ -71,13 +71,3 @@ int seek_fd(FILE *stream, long offset, int whence) { // FIXME: Error checking return 0; } - -FILE __stdin_FILE = { - .write = write_fd, - .read = read_fd, - .seek = NULL, - .is_eof = 0, - .has_error = 0, - .cookie = NULL, - .fd = 0, -}; -- cgit v1.2.3