libc: use the normal names that everybody uses for stdout and stderr
This commit is contained in:
parent
dfdc3b2d11
commit
34c35163e4
@ -9,10 +9,10 @@ extern "C" void initialize_libc()
|
|||||||
close(0); // If it was already open, close it
|
close(0); // If it was already open, close it
|
||||||
close(1); // If it was already open, close it
|
close(1); // If it was already open, close it
|
||||||
errno = 0; // If it was not open. the kernel will throw us EBADF. Let's ignore that, since we don't care.
|
errno = 0; // If it was not open. the kernel will throw us EBADF. Let's ignore that, since we don't care.
|
||||||
__stderr = fopen("/dev/console", "rw");
|
stderr = fopen("/dev/console", "rw");
|
||||||
if (!stderr) exit(errno);
|
if (!stderr) exit(errno);
|
||||||
__stdout = fopen("/dev/console", "rw");
|
stdout = fopen("/dev/console", "rw");
|
||||||
if (!stdout) exit(errno);
|
if (!stdout) exit(errno);
|
||||||
clearerr(__stderr);
|
clearerr(stderr);
|
||||||
clearerr(__stdout);
|
clearerr(stdout);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user