diff options
author | dzwdz | 2023-09-07 01:31:09 +0200 |
---|---|---|
committer | dzwdz | 2023-09-07 01:31:09 +0200 |
commit | 58eed4a5791cc99859a2591a59f3e0de0a2dc1ab (patch) | |
tree | 091e5379a94674d9643188978d6c19776f05f94c /src/libc/stdio/file.c | |
parent | 9c3ee3807c93945380e58379d5d0a415d9d88521 (diff) |
user: fix stdio stream pos; remove the shell pipe redir workaround
Diffstat (limited to 'src/libc/stdio/file.c')
-rw-r--r-- | src/libc/stdio/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <unistd.h> 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; |