Skip to content

Commit

Permalink
Go ahead and line buffer stdout and stdin, since we have a buffer anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed May 20, 2024
1 parent 0c1e64f commit 62c8dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mos-platform/common/c/stdio-full.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62c8dbc

Please sign in to comment.