feat: add is_terminal_attached syscall
This commit is contained in:
@@ -422,6 +422,10 @@
|
||||
Read from the kernel ring log buffer.
|
||||
int64_t montauk::read_log(char* buf, uint64_t size);
|
||||
|
||||
.B SYS_LOG_WRITE (176)
|
||||
Append a userspace message to the system log.
|
||||
int64_t montauk::write_log(const char* message);
|
||||
|
||||
.SH I/O REDIRECTION
|
||||
Used by the terminal app and similar programs to run a child
|
||||
process with its console I/O captured instead of going directly
|
||||
@@ -447,6 +451,11 @@
|
||||
Tell a redirected child its terminal dimensions changed.
|
||||
int montauk::childio_settermsz(int childPid, int cols, int rows);
|
||||
|
||||
.B SYS_TERMINAL_ATTACHED (177)
|
||||
Return 1 when the calling process has a redirected userspace
|
||||
terminal output stream, otherwise return 0.
|
||||
bool montauk::terminal_attached();
|
||||
|
||||
.SH WINDOW SERVER
|
||||
Window server syscalls are used by GUI programs to create and
|
||||
drive an on-screen window (see montauk/Window.hpp for the
|
||||
|
||||
Reference in New Issue
Block a user