Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dsys-linux.c178 static int slave_fd = -1; /* pty for old-style demand mode, slave */ variable
274 if (!hungup || ppp_fd == slave_fd) in still_ppp()
276 if (slave_fd >= 0) { in still_ppp()
277 set_ppp_fd(slave_fd); in still_ppp()
368 if (slave_fd >= 0) in sys_close()
369 close(slave_fd); in sys_close()
411 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { in tty_establish_ppp()
606 set_ppp_fd(slave_fd); in generic_disestablish_ppp()
2637 if (!get_pty(&master_fd, &slave_fd, loop_name, 0)) in open_ppp_loopback()
2640 set_ppp_fd(slave_fd); in open_ppp_loopback()
/external/qemu/
Dqemu-char.c948 int slave_fd, len; in qemu_chr_open_pty() local
960 if (openpty(&s->fd, &slave_fd, pty_name, NULL, NULL) < 0) { in qemu_chr_open_pty()
965 tcgetattr(slave_fd, &tty); in qemu_chr_open_pty()
967 tcsetattr(slave_fd, TCSAFLUSH, &tty); in qemu_chr_open_pty()
968 close(slave_fd); in qemu_chr_open_pty()
Dqemu-char-android.c980 int slave_fd, len; in qemu_chr_open_pty() local
993 if (openpty(&s->fd, &slave_fd, pty_name, NULL, NULL) < 0) { in qemu_chr_open_pty()
998 tcgetattr(slave_fd, &tty); in qemu_chr_open_pty()
1000 tcsetattr(slave_fd, TCSAFLUSH, &tty); in qemu_chr_open_pty()
1001 close(slave_fd); in qemu_chr_open_pty()