Lines Matching defs:slave
398 int slave;
407 if (openpty(&info->master, &info->slave, NULL, NULL, NULL))
411 static int async_pty(int master, int slave)
423 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0))
432 struct openpty_arg pty = { .master = -1, .slave = -1 };
433 int master, slave, err;
443 slave = pty.slave;
445 if ((master == -1) || (slave == -1)) {
459 err = async_pty(master, slave);
481 (*proc)(master, slave);
484 close(slave);
491 static void tty_output(int master, int slave)
504 while (((n = read(slave, buf, sizeof(buf))) > 0) &&
517 static void tty_close(int master, int slave)
522 close(slave);