Home | History | Annotate | Download | only in bionic

Lines Matching defs:slave

115 int openpty(int* master, int* slave, char* name, const termios* t, const winsize* ws) {
135 *slave = open(name, O_RDWR|O_NOCTTY);
136 if (*slave == -1) {
142 tcsetattr(*slave, TCSAFLUSH, t);
145 ioctl(*slave, TIOCSWINSZ, ws);
153 int slave;
154 if (openpty(&master, &slave, name, t, ws) == -1) {
161 close(slave);
169 if (login_tty(slave) == -1) {
177 close(slave);