/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
mount_node_tty_test.cc | 174 int tty_fd = ki_open("/dev/tty", O_RDONLY); local 175 ASSERT_GT(tty_fd, 0) << "tty open failed: " << errno; 179 FD_SET(tty_fd, &readfds); 180 FD_SET(tty_fd, &errorfds); 185 int rtn = ki_select(tty_fd + 1, &readfds, NULL, &errorfds, &timeout); 187 ASSERT_FALSE(FD_ISSET(tty_fd, &readfds)); 188 ASSERT_FALSE(FD_ISSET(tty_fd, &errorfds)); 193 FD_SET(tty_fd, &readfds); 194 FD_SET(tty_fd, &writefds); 195 FD_SET(tty_fd, &errorfds) 217 int tty_fd = ki_open("\/dev\/tty", O_RDONLY); local 288 int* tty_fd = static_cast<int*>(arg); local 299 int tty_fd = ki_open("\/dev\/tty", O_RDONLY); local 341 int tty_fd = ki_open("\/dev\/tty", O_RDONLY); local [all...] |
/external/mksh/src/ |
jobs.c | 274 tcsetpgrp(tty_fd, restore_ttypgrp); 299 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) { 306 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { 327 if (tcsetpgrp(tty_fd, kshpid) < 0) { 495 tcsetpgrp(tty_fd, j->pgrp); 810 mksh_tcset(tty_fd, &j->ttystat); 813 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? 817 mksh_tcset(tty_fd, &tty_state); 820 "1st", "tcsetpgrp", tty_fd, 839 mksh_tcset(tty_fd, &tty_state) [all...] |
main.c | 1100 * Initialise tty_fd. Used for tracking the size of the terminal, 1108 * An existing tty_fd is cached if no "better" one could be found, 1136 if (tty_fd >= 0) { 1162 tty_fd = rv; [all...] |
var.c | [all...] |
sh.h | [all...] |
edit.c | [all...] |
/external/ppp/pppd/ |
sys-linux.c | 397 int tty_establish_ppp (int tty_fd) 404 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { 424 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { 431 ret_fd = generic_establish_ppp(tty_fd); 441 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) 549 void tty_disestablish_ppp(int tty_fd) 555 if (tcflush(tty_fd, TCIOFLUSH) < 0) 563 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { 568 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { 574 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) [all...] |
/external/chromium_org/third_party/pexpect/ |
pexpect.py | 643 def __pty_make_controlling_tty(self, tty_fd): 649 child_name = os.ttyname(tty_fd) [all...] |