diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-30 22:03:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-30 22:03:02 +0100 |
commit | 00c21d15902c36242aa3a9a3ef1b22948dcccbf7 (patch) | |
tree | a35cc29c7eefa3090044e72eca9ba4bc592f886c /Kernel/Syscall.cpp | |
parent | 7a85384e4794f4cda49bd83c27254b1f44229a4c (diff) | |
download | serenity-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.cpp | 2 |
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; |