浏览代码

Fix stdin/stdout/stderr for now.

Manuel Novoa III 25 年之前
父节点
当前提交
55452223c9
共有 1 个文件被更改,包括 4 次插入0 次删除
  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