Lines Matching refs:slave
170 int slave; member
179 if (openpty(&info->master, &info->slave, NULL, NULL, NULL)) in openpty_cb()
183 static int async_pty(int master, int slave) in async_pty() argument
195 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) in async_pty()
204 struct openpty_arg pty = { .master = -1, .slave = -1 }; in check_one_sigio()
205 int master, slave, err; in check_one_sigio() local
215 slave = pty.slave; in check_one_sigio()
217 if ((master == -1) || (slave == -1)) { in check_one_sigio()
231 err = async_pty(master, slave); in check_one_sigio()
253 (*proc)(master, slave); in check_one_sigio()
256 close(slave); in check_one_sigio()
263 static void tty_output(int master, int slave) in tty_output() argument
276 while (((n = read(slave, buf, sizeof(buf))) > 0) && in tty_output()