openpty
i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
int openpty(int *, int *, char *, struct termios *, struct winsize *);
int openpty(int *_amaster, int *_aslave, char *_name,
if (openpty(&master, &slave, name, termp, winp) == -1)
if (openpty(&m[i], &s[i], slname, NULL, NULL) == -1)
if (openpty(&m[0], &s[0], slname, NULL, NULL) == -1)
if (openpty(&master, &slave, slname, NULL, NULL) == -1)
if (openpty(&master, &slave, slname, NULL, NULL) == -1)
if (openpty(&master, &slave, NULL, &tt, &win) == -1)
if (openpty(&master, &slave, NULL, NULL, NULL) == -1)
result = openpty(&w->ww_pty, &tty, w->ww_ttyname, NULL, NULL);