Kernel/LibC: remove SYS_TERMID

This syscall is not needed. /dev/tty is already a symlink to the
controlling terminal. Also this syscall did not handle pseudo terminals
This commit is contained in:
2026-01-16 15:57:36 +02:00
parent 1d07151743
commit 0299d4d44e
4 changed files with 1 additions and 23 deletions

View File

@@ -138,7 +138,7 @@ char* ctermid(char* buffer)
{
static char s_buffer[L_ctermid];
char* target = buffer ? buffer : s_buffer;
syscall(SYS_TERMID, target);
strcpy(buffer, "/dev/tty");
return target;
}