From 62c8dbcdbf77738ae4c21785ac71894657e02ba7 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Mon, 20 May 2024 10:12:09 -0700 Subject: [PATCH] Go ahead and line buffer stdout and stdin, since we have a buffer anyway --- mos-platform/common/c/stdio-full.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mos-platform/common/c/stdio-full.c b/mos-platform/common/c/stdio-full.c index 701cc1f1..86102f09 100644 --- a/mos-platform/common/c/stdio-full.c +++ b/mos-platform/common/c/stdio-full.c @@ -65,12 +65,12 @@ static FILE serr = {.handle = 2, static FILE sout = {.handle = 1, .buffer = sout_buf, .bufsize = sizeof(sout_buf), - .status = _IONBF | FWRITE, + .status = _IOLBF | FWRITE, .next = &serr}; static FILE sin = {.handle = 0, .buffer = sin_buf, .bufsize = sizeof(sin_buf), - .status = _IONBF | FREAD, + .status = _IOLBF | FREAD, .next = &sout}; FILE *stdin = &sin;