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:
@@ -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) \
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user