fdforkpty
if ((pid = fdforkpty(ptmfd, amaster, name, termp, winp)) == -1) {
pid_t fdforkpty(int, int *, char *, const struct termios *,
pid = fdforkpty(ptm_fd, &master, tty, NULL, &ws);
new_wp->pid = fdforkpty(ptm_fd, &new_wp->fd, new_wp->tty, NULL, &ws);