From 58eed4a5791cc99859a2591a59f3e0de0a2dc1ab Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Sep 2023 01:31:09 +0200 Subject: user: fix stdio stream pos; remove the shell pipe redir workaround --- src/libc/stdio/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libc/stdio/file.c') diff --git a/src/libc/stdio/file.c b/src/libc/stdio/file.c index 30a578e..d8b7d5a 100644 --- a/src/libc/stdio/file.c +++ b/src/libc/stdio/file.c @@ -10,8 +10,8 @@ #include static FILE _stdin_null = { .fd = STDIN_FILENO }; -static FILE _stdout_null = { .fd = STDOUT_FILENO }; -static FILE _stderr_null = { .fd = STDERR_FILENO }; +static FILE _stdout_null = { .fd = STDOUT_FILENO, .pos = -1 }; +static FILE _stderr_null = { .fd = STDERR_FILENO, .pos = -1 }; FILE *const stdin = &_stdin_null; FILE *const stdout = &_stdout_null; FILE *const stderr = &_stderr_null; -- cgit v1.2.3