Lines Matching refs:slave
401 int slave;
410 if (openpty(&info->master, &info->slave, NULL, NULL, NULL))
414 static int async_pty(int master, int slave)
426 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0))
435 struct openpty_arg pty = { .master = -1, .slave = -1 };
436 int master, slave, err;
446 slave = pty.slave;
448 if ((master == -1) || (slave == -1)) {
462 err = async_pty(master, slave);
484 (*proc)(master, slave);
487 close(slave);
494 static void tty_output(int master, int slave)
507 while (((n = read(slave, buf, sizeof(buf))) > 0) &&
520 static void tty_close(int master, int slave)
525 close(slave);