From b74d4db23b39b0ef5a58175abe778854dd8304c9 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 27 Mar 2025 16:09:16 +0000 Subject: [PATCH] fix(kernel): update device file references from 'kcon' to 'console' Feels more right to be 'console'. Signed-off-by: EnderIce2 --- Kernel/drivers/misc/pty/pty.cpp | 2 +- Kernel/exec/spawn.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/drivers/misc/pty/pty.cpp b/Kernel/drivers/misc/pty/pty.cpp index dcbe9552..837826b7 100644 --- a/Kernel/drivers/misc/pty/pty.cpp +++ b/Kernel/drivers/misc/pty/pty.cpp @@ -156,7 +156,7 @@ namespace Driver::TeleTypeDevices S_IRGRP | S_IFCHR; - ids.kcon = DriverManager->CreateDeviceFile(DriverID, "kcon", mode, &ops); + ids.kcon = DriverManager->CreateDeviceFile(DriverID, "console", mode, &ops); /* c rw- rw- rw- */ mode = S_IRUSR | S_IWUSR | diff --git a/Kernel/exec/spawn.cpp b/Kernel/exec/spawn.cpp index 8c826763..00c5e0c5 100644 --- a/Kernel/exec/spawn.cpp +++ b/Kernel/exec/spawn.cpp @@ -173,13 +173,13 @@ namespace Execute Process->tty = KernelConsole::CurrentTerminal.load(); if (!ForkStdio(Parent->stdin)) - fdt->usr_open("/dev/kcon", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + fdt->usr_open("/dev/console", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (!ForkStdio(Parent->stdout)) - fdt->usr_open("/dev/kcon", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + fdt->usr_open("/dev/console", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (!ForkStdio(Parent->stderr)) - fdt->usr_open("/dev/kcon", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + fdt->usr_open("/dev/console", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); TCB *Thread = nullptr; {