Kernel: Add /dev/tty symlink that targets the current tty

This commit is contained in:
Bananymous
2023-09-05 00:59:29 +03:00
parent f0772e385c
commit ba7e1b9ca5
9 changed files with 35 additions and 12 deletions

View File

@@ -11,7 +11,7 @@
void initialize_stdio()
{
const char* tty = "/dev/tty0";
const char* tty = "/dev/tty";
if (open(tty, O_RDONLY | O_TTY_INIT) != 0) _exit(1);
if (open(tty, O_WRONLY) != 1) _exit(1);
if (open(tty, O_WRONLY) != 2) _exit(1);