summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-30 22:03:02 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-30 22:03:02 +0100
commit00c21d15902c36242aa3a9a3ef1b22948dcccbf7 (patch)
treea35cc29c7eefa3090044e72eca9ba4bc592f886c /Kernel/Syscall.cpp
parent7a85384e4794f4cda49bd83c27254b1f44229a4c (diff)
downloadserenity-00c21d15902c36242aa3a9a3ef1b22948dcccbf7.zip
Add sys$ttyname_r and ttyname_r() + ttyname().
And print a greeting when sh starts up so we know which TTY we're on.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r--Kernel/Syscall.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp
index 8fd578166c..e460da4b90 100644
--- a/Kernel/Syscall.cpp
+++ b/Kernel/Syscall.cpp
@@ -114,6 +114,8 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
return current->sys$set_mmap_name((void*)arg1, (size_t)arg2, (const char*)arg3);
case Syscall::PosixReadlink:
return current->sys$readlink((const char*)arg1, (char*)arg2, (size_t)arg3);
+ case Syscall::PosixTtynameR:
+ return current->sys$ttyname_r((int)arg1, (char*)arg2, (size_t)arg3);
default:
kprintf("int0x80: Unknown function %x requested {%x, %x, %x}\n", function, arg1, arg2, arg3);
break;