Searched refs:tty_fd (Results 1 - 9 of 9) sorted by relevance

/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dtty_test.cc191 int tty_fd = ki_open("/dev/tty", O_RDONLY, 0); local
192 ASSERT_GT(tty_fd, 0) << "tty open failed: " << errno;
196 FD_SET(tty_fd, &readfds);
197 FD_SET(tty_fd, &errorfds);
202 int rtn = ki_select(tty_fd + 1, &readfds, NULL, &errorfds, &timeout);
204 ASSERT_FALSE(FD_ISSET(tty_fd, &readfds));
205 ASSERT_FALSE(FD_ISSET(tty_fd, &errorfds));
210 FD_SET(tty_fd, &readfds);
211 FD_SET(tty_fd, &writefds);
212 FD_SET(tty_fd,
234 int tty_fd = ki_open("/dev/tty", O_RDONLY, 0); local
267 int tty_fd = ki_open("/dev/tty", O_RDONLY, 0); local
304 int* tty_fd = static_cast<int*>(arg); local
315 int tty_fd = ki_open("/dev/tty", O_RDONLY, 0); local
358 int tty_fd = ki_open("/dev/tty", O_RDONLY, 0); local
[all...]
/external/mksh/src/
H A Djobs.c238 mksh_tcset(tty_fd, &tty_state);
240 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) {
265 } else if (tcsetpgrp(tty_fd, kshpid) < 0) {
319 tcsetpgrp(tty_fd, restore_ttypgrp);
344 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) {
351 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) {
372 if (tcsetpgrp(tty_fd, kshpid) < 0) {
540 tcsetpgrp(tty_fd, j->pgrp);
856 mksh_tcset(tty_fd, &j->ttystat);
859 tcsetpgrp(tty_fd, (
[all...]
H A Dmain.c1079 * Initialise tty_fd. Used for tracking the size of the terminal,
1087 * An existing tty_fd is cached if no "better" one could be found,
1115 if (tty_fd >= 0) {
1141 tty_fd = rv;
H A Dvar.c1560 if (ioctl(tty_fd, TIOCGWINSZ, &ws) >= 0) {
H A Dsh.h2026 /* tty_fd is not opened O_BINARY, it's thus never read/written */
2027 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
2028 EXTERN bool tty_devtty; /* true if tty_fd is from /dev/tty */
2032 extern int tty_init_fd(void); /* initialise tty_fd, tty_devtty */
H A Dedit.c3290 x_mkraw(tty_fd, NULL, false);
3330 mksh_tcset(tty_fd, &tty_state);
/external/ppp/pppd/
H A Dsys-linux.c397 int tty_establish_ppp (int tty_fd) argument
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) argument
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_SETF
902 set_up_tty(int tty_fd, int local) argument
977 setdtr(int tty_fd, int on) argument
989 restore_tty(int tty_fd) argument
[all...]
/external/chromium_org/third_party/pexpect/
H A Dpexpect.py643 def __pty_make_controlling_tty(self, tty_fd):
649 child_name = os.ttyname(tty_fd)
/external/lldb/test/pexpect-2.4/
H A Dpexpect.py607 def __pty_make_controlling_tty(self, tty_fd):
613 child_name = os.ttyname(tty_fd)

Completed in 1430 milliseconds