Searched refs:slave (Results 1 – 2 of 2) sorted by relevance
103 int master = -1, slave = -1, fret = -1; in do_tiocgptpeer() local123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer()125 if (slave < 0) { in do_tiocgptpeer()145 ret = login_pty(slave); in do_tiocgptpeer()181 if (slave >= 0) in do_tiocgptpeer()182 close(slave); in do_tiocgptpeer()
480 for slave in "$@"; do481 ip link set dev $slave down482 ip link set dev $slave master $if_name483 ip link set dev $slave up