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

@@ -9,7 +9,6 @@ __BEGIN_DECLS
O(SYS_EXIT, exit) \
O(SYS_READ, read) \
O(SYS_WRITE, write) \
O(SYS_TERMID, termid) \
O(SYS_CLOSE, close) \
O(SYS_OPENAT, openat) \
O(SYS_SEEK, seek) \

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;
}