Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Dpty_test.cpp23 int master, slave; in TEST() local
26 ASSERT_EQ(0, openpty(&master, &slave, name, NULL, &w)); in TEST()
28 ASSERT_NE(-1, slave); in TEST()
29 ASSERT_NE(master, slave); in TEST()
32 ASSERT_EQ(0, ttyname_r(slave, tty_name, sizeof(tty_name))); in TEST()
36 ASSERT_EQ(0, ioctl(slave, TIOCGWINSZ, &w_actual)); in TEST()
43 close(slave); in TEST()
/bionic/libc/bionic/
Dpty.cpp118 int openpty(int* master, int* slave, char* name, const termios* t, const winsize* ws) { in openpty() argument
138 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
139 if (*slave == -1) { in openpty()
145 tcsetattr(*slave, TCSAFLUSH, t); in openpty()
148 ioctl(*slave, TIOCSWINSZ, ws); in openpty()
155 int slave; in forkpty() local
156 if (openpty(master, &slave, name, t, ws) == -1) { in forkpty()
163 close(slave); in forkpty()
170 if (login_tty(slave) == -1) { in forkpty()
177 close(slave); in forkpty()
/bionic/libc/kernel/uapi/linux/
Disdn.h115 char slave[10]; member