summaryrefslogtreecommitdiff
path: root/src/libc/stdio/file.c
diff options
context:
space:
mode:
authordzwdz2023-09-07 01:31:09 +0200
committerdzwdz2023-09-07 01:31:09 +0200
commit58eed4a5791cc99859a2591a59f3e0de0a2dc1ab (patch)
tree091e5379a94674d9643188978d6c19776f05f94c /src/libc/stdio/file.c
parent9c3ee3807c93945380e58379d5d0a415d9d88521 (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.c4
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;