So the first thing to do is really to fix the ptm ioctl so that it will create new pty nodes the fly as necessary. Then libc will find them and use them, without requiring the sysadmin to manually intervene. I got most of the code for that done. It requires a bit of style refinement and further review, and then once that's in we can start thinking about how to expand beyond 992 possible names.