fdopenpty
if (fdopenpty(ptmfd, &master, &slave, name, termp, winp) == -1)
if (fdopenpty(ptmfd, amaster, aslave, name, termp, winp) == -1) {
int fdopenpty(int, int *, int *, char *, const struct termios *,
if (fdopenpty(env->vmd_ptmfd, &vm->vm_tty, &tty_slave, vm->vm_ttyname,