init: Open /dev/console for appending
This commit is contained in:
parent
17671fd435
commit
acdc2d3ad7
@ -57,8 +57,8 @@ extern char* program_invocation_name;
|
||||
extern "C" void initialize_libc(int, char** argv)
|
||||
{
|
||||
check_for_file(STDIN_FILENO, &stdin, "/dev/kbd", "r");
|
||||
check_for_file(STDOUT_FILENO, &stdout, "/dev/console", "w");
|
||||
check_for_file(STDERR_FILENO, &stderr, "/dev/console", "w");
|
||||
check_for_file(STDOUT_FILENO, &stdout, "/dev/console", "a");
|
||||
check_for_file(STDERR_FILENO, &stderr, "/dev/console", "a");
|
||||
|
||||
if (argv) program_invocation_name = argv[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user