mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 00:42:14 +00:00
Add basic PTY support.
For now, there are four hard-coded PTYs: /dev/pt{m,s}[0123] Use this in the Terminal to open a pty pair and spawn a shell.
This commit is contained in:
parent
ecb4ab0943
commit
2f74c2f430
21 changed files with 287 additions and 10 deletions
|
@ -121,6 +121,8 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
|
|||
return current->sys$readlink((const char*)arg1, (char*)arg2, (size_t)arg3);
|
||||
case Syscall::SC_ttyname_r:
|
||||
return current->sys$ttyname_r((int)arg1, (char*)arg2, (size_t)arg3);
|
||||
case Syscall::SC_ptsname_r:
|
||||
return current->sys$ptsname_r((int)arg1, (char*)arg2, (size_t)arg3);
|
||||
case Syscall::SC_setsid:
|
||||
return current->sys$setsid();
|
||||
case Syscall::SC_getsid:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue