ddd6c4f3ac
This functionality is needed according to POSIX. Additionally, some logic had to be changed in order for the ptsname to be correct for the manager terminal (ptmx). If you want to obtain a pty, you must go through the `posix_openpt`-`grantpt`-`unlockpt`-`ptsname`-`open` process. Alternatively, relibc as a function called `openpty`. This is part of my ptyd series. This can be safely merged once the MRs for relibc/ and userutils/ are merged at the same time.