mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 18:45:10 +00:00
Add some simple write buffering to LibC's stdio.
Plumb it all the way to the VirtualConsole. Also fix /bin/cat to write() the whole chunks we get from read() directly to stdout.
This commit is contained in:
parent
e287f8ef3a
commit
da3857b0c2
10 changed files with 42 additions and 22 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
#include <AK/StringImpl.h>
|
||||
|
||||
|
@ -20,6 +21,8 @@ extern "C" int _start()
|
|||
|
||||
errno = 0;
|
||||
|
||||
memset(__default_streams, 0, sizeof(__default_streams));
|
||||
|
||||
__default_streams[0].fd = 0;
|
||||
stdin = &__default_streams[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue