summaryrefslogtreecommitdiff
path: root/Userland/DevTools/UserspaceEmulator
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-02-15 21:39:01 +0200
committerAndreas Kling <kling@serenityos.org>2022-03-22 20:26:05 +0100
commitde7566c2c49ca30785e90194f91bc81f907a5f70 (patch)
tree78f4ab41d639f59d225471871488b7133ea439b1 /Userland/DevTools/UserspaceEmulator
parent5ffe2f117c668ce011ff08635b4eba52ccacb083 (diff)
downloadserenity-de7566c2c49ca30785e90194f91bc81f907a5f70.zip
LibC: Don't rely on ptsname and ttyname syscalls
Instead, to determine these values (both the pts name and tty name), use other methods. For determining the new name of the allocated psuedo terminal, use ioctl on a file descriptor we got after opening /dev/ptmx with the TIOCGPTN option. For determining the name of TTY, we enumerate both /dev/pts and /dev directories to find matching inode number and matching device mode.
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator')
0 files changed, 0 insertions, 0 deletions