Browse Source

Fix stdin/stdout/stderr for now.

Manuel Novoa III 23 years ago
parent
commit
55452223c9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libc/stdio/stdio.c

+ 4 - 0
libc/stdio/stdio.c

@@ -96,6 +96,10 @@ FILE _stdio_streams[3] = {
 	 2, _IONBF | __MODE_WRITE | __MODE_IOTRAN}
 };
 
+FILE *_stdin = _stdio_streams + 0;
+FILE *_stdout = _stdio_streams + 1;
+FILE *_stderr = _stdio_streams + 2;
+
 /*
  * Note: the following forces linking of the __init_stdio function if
  * any of the stdio functions are used (except perror) since they all