[klibc] stdio: don't force stdin and stdout to line buffered
Don't force stdin and stdout to be line buffered, instead let them be
line- or fully buffered depending on the I/O type.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/usr/klibc/stdio/fdopen.c b/usr/klibc/stdio/fdopen.c
index a921b59..51285ba 100644
--- a/usr/klibc/stdio/fdopen.c
+++ b/usr/klibc/stdio/fdopen.c
@@ -51,11 +51,7 @@
void __init_stdio(void)
{
stdin = fdopen(0, NULL);
- stdio_pvt(stdin)->bufmode = _IOLBF;
-
stdout = fdopen(1, NULL);
- stdio_pvt(stdout)->bufmode = _IOLBF;
-
stderr = fdopen(2, NULL);
stdio_pvt(stderr)->bufmode = _IONBF;
}