Searched refs:pty_master (Results 1 – 2 of 2) sorted by relevance
/external/selinux/policycoreutils/run_init/ |
D | open_init_pty.c | 226 int pty_master; in main() local 271 child_pid = forkpty(&pty_master, NULL, &tty_attr, &window_size); in main() 273 child_pid = forkpty(&pty_master, NULL, NULL, NULL); in main() 302 setfd_nonblock(pty_master); in main() 326 FD_SET(pty_master, &readfds); in main() 331 FD_SET(pty_master, &writefds); in main() 357 int select_rc = select(pty_master + 1, &readfds, &writefds, NULL, NULL); in main() 381 if (FD_ISSET(pty_master, &writefds)) { in main() 385 ssize_t n = rb_write(&inbuf, pty_master); in main() 411 if (FD_ISSET(pty_master, &readfds)) { in main() [all …]
|
/external/ppp/pppd/ |
D | tty.c | 124 static int pty_master; /* fd for master side of pty */ variable 532 pty_master = -1; in connect_tty() 536 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) { in connect_tty() 649 if (device_script(ptycommand, pty_master, pty_master, 1) < 0) in connect_tty() 676 close(pty_master); in connect_tty() 677 pty_master = -1; in connect_tty() 765 if (pty_master >= 0) { in connect_tty() 766 close(pty_master); in connect_tty() 767 pty_master = -1; in connect_tty() 1041 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE) [all …]
|