openpty
int openpty(int *, int *, char *, struct termios *,
if (openpty(&master, &slave, name, term, winp) == -1)
ptyfd = openpty(ptynum, &ptyslavefd, line, NULL, NULL);
RL(openpty(&amaster, &aslave, slavetty, NULL, NULL));
RL(openpty(&amaster, &aslave, slavetty, NULL, NULL));
RL(openpty(&amaster, &aslave, slavetty, NULL, NULL));
int openpty(int *, int *, char *, struct termios *, struct winsize *);
REQUIRE_ERRNO(openpty(&m, &s, name, &term, NULL), -1);
if (openpty(&master, &slave, NULL, NULL, NULL) == -1)
if (openpty(&master, &slave, NULL, &tt, &win) == -1)
if (openpty(&master, &slave, NULL, &tt, win) == -1) {
openpty(&master, &slave, NULL, NULL, NULL);