Linus Torvalds writes: (Summary) With TIOCGPTPEER we have a nice way to get the pts file
descriptor, but the "normal" way to get to it involves opening a path
given by ptsname(), so we en dup in the crazy situation that we can
easily open the file without the path, but then we use the fd to get
the path (that we didn't need) and then people open it with that path,
because the standard sequence to get a pts is
because the standard sequence to get a pts is
because the standard sequence to get a pts is
master = getpt() / posix_openpt() / open("/dev/ptmx", O_RDWR |