openpty
if(openpty(&master, &slave, line, 0, 0) == 0){
if(openpty(&master, &slave, line, 0, 0) == 0)
int openpty(int *, int *, char *, struct termios *, struct winsize *);
i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
int openpty(int *_amaster, int *_aslave, char *_name,
if (openpty(&master, &slave, name, termp, winp) == -1)
ATF_REQUIRE_MSG(openpty(&read_fd, &write_fd, NULL, NULL, NULL) == 0,
#define newpty(masterp, slavep) openpty((masterp), (slavep), NULL, NULL, NULL)
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(amaster, aslave, pty, &tio, NULL) == -1) {
if (openpty(&master, &slave, NULL, NULL, NULL) == -1)
if (openpty(&master, &slave, NULL, &tt, &win) == -1)