Searched refs:slave (Results 1 – 2 of 2) sorted by relevance
/bionic/tests/ |
D | pty_test.cpp | 31 int master, slave; in TEST() local 34 ASSERT_EQ(0, openpty(&master, &slave, name, nullptr, &w)); in TEST() 36 ASSERT_NE(-1, slave); in TEST() 37 ASSERT_NE(master, slave); in TEST() 40 ASSERT_EQ(0, ttyname_r(slave, tty_name, sizeof(tty_name))); in TEST() 44 ASSERT_EQ(0, ioctl(slave, TIOCGWINSZ, &w_actual)); in TEST() 51 close(slave); in TEST() 118 int slave; in TEST() local 119 ASSERT_EQ(0, openpty(&master, &slave, nullptr, nullptr, nullptr)); in TEST() 121 ASSERT_EQ(0, tcgetattr(slave, &tattr)); in TEST() [all …]
|
/bionic/libc/bionic/ |
D | pty.cpp | 115 int openpty(int* master, int* slave, char* name, const termios* t, const winsize* ws) { in openpty() argument 135 *slave = open(name, O_RDWR|O_NOCTTY); in openpty() 136 if (*slave == -1) { in openpty() 142 tcsetattr(*slave, TCSAFLUSH, t); in openpty() 145 ioctl(*slave, TIOCSWINSZ, ws); in openpty() 153 int slave; in forkpty() local 154 if (openpty(&master, &slave, name, t, ws) == -1) { in forkpty() 161 close(slave); in forkpty() 169 if (login_tty(slave) == -1) { in forkpty() 177 close(slave); in forkpty()
|