aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-05-15 18:17:41 -0700
committerH. Peter Anvin <hpa@zytor.com>2012-05-15 18:17:41 -0700
commit7b42943f4ed7c3e9bc10779b4d765fb81f3babf3 (patch)
tree5e55504082e63b3e05003f403dd755e27462f856
parentb8a4fc979849e4470bf31306575a0b0478a6043e (diff)
downloadklibc-7b42943f4ed7c3e9bc10779b4d765fb81f3babf3.tar.gz
[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>
-rw-r--r--usr/klibc/stdio/fdopen.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/usr/klibc/stdio/fdopen.c b/usr/klibc/stdio/fdopen.c
index a921b5910e572..51285baeeb123 100644
--- a/usr/klibc/stdio/fdopen.c
+++ b/usr/klibc/stdio/fdopen.c
@@ -51,11 +51,7 @@ err:
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;
}