Home
last modified time | relevance | path

Searched refs:pty_master (Results 1 – 2 of 2) sorted by relevance

/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c204 int pty_master; in main() local
249 child_pid = forkpty(&pty_master, NULL, &tty_attr, &window_size); in main()
251 child_pid = forkpty(&pty_master, NULL, NULL, NULL); in main()
280 setfd_nonblock(pty_master); in main()
300 FD_SET(pty_master, &readfds); in main()
305 FD_SET(pty_master, &writefds); in main()
330 int select_rc = select(pty_master + 1, &readfds, &writefds, NULL, NULL); in main()
354 if (FD_ISSET(pty_master, &writefds)) { in main()
358 ssize_t n = rb_write(&inbuf, pty_master); in main()
384 if (FD_ISSET(pty_master, &readfds)) { in main()
[all …]
/external/ppp/pppd/
Dtty.c124 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 …]