mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-04 06:47:40 +00:00
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.
37 KiB
37 KiB