Home
last modified time | relevance | path

Searched refs:tty_fd (Results 1 – 14 of 14) sorted by relevance

/external/nos/test/system-test-harness/src/
Dutil.cc115 input_buffer(PROTO_BUFFER_MAX_LEN, 0), tty_fd(-1) { in TestHarness()
126 input_buffer(PROTO_BUFFER_MAX_LEN, 0), tty_fd(-1) { in TestHarness()
136 auto temp = tty_fd; in ~TestHarness()
137 tty_fd = -1; in ~TestHarness()
153 return tty_fd != -1; in ttyState()
295 while (read(tty_fd, &read_value, 1) <= 0) { in GetAhdlc()
428 tty_fd = open(path, O_RDWR | O_NOCTTY | O_NDELAY); in Init()
435 if (!isatty(tty_fd)) { in Init()
439 if (tcgetattr(tty_fd, &tty_state)) { in Init()
461 if (tcsetattr(tty_fd, TCSAFLUSH, &tty_state)) { in Init()
[all …]
Dutil.h130 int tty_fd; variable
/external/mksh/src/
Djobs.c245 mksh_tcset(tty_fd, &tty_state); in j_suspend()
247 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) { in j_suspend()
272 } else if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_suspend()
326 tcsetpgrp(tty_fd, restore_ttypgrp); in j_exit()
351 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) { in j_change()
358 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { in j_change()
379 if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_change()
546 tcsetpgrp(tty_fd, j->pgrp); in exchild()
862 mksh_tcset(tty_fd, &j->ttystat); in j_resume()
865 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? in j_resume()
[all …]
Dmain.c1204 if (tty_fd >= 0) { in tty_init_fd()
1230 tty_fd = rv; in tty_init_fd()
Dvar.c1693 if (ioctl(tty_fd, TIOCGWINSZ, &ws) >= 0) { in change_winsz()
Dedit.c3330 x_mkraw(tty_fd, NULL, false); in x_mode()
3369 mksh_tcset(tty_fd, &tty_state); in x_mode()
Dsh.h2738 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
/external/ppp/pppd/
Dsys-linux.c403 int tty_establish_ppp (int tty_fd) in tty_establish_ppp() argument
410 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
430 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
437 ret_fd = generic_establish_ppp(tty_fd); in tty_establish_ppp()
447 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
555 void tty_disestablish_ppp(int tty_fd) in tty_disestablish_ppp() argument
561 if (tcflush(tty_fd, TCIOFLUSH) < 0) in tty_disestablish_ppp()
569 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { in tty_disestablish_ppp()
574 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { in tty_disestablish_ppp()
580 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) { in tty_disestablish_ppp()
[all …]
/external/toybox/toys/other/
Dreset.c21 int fd = tty_fd(); in reset_main()
Dlogin.c41 int hh = FLAG(h), count, tty = tty_fd(); in login_main()
/external/toybox/lib/
Dtty.c8 int tty_fd(void) in tty_fd() function
Dlib.h299 int tty_fd(void);
/external/autotest/client/common_lib/
Dpexpect.py606 def __pty_make_controlling_tty(self, tty_fd): argument
612 child_name = os.ttyname(tty_fd)
/external/toybox/toys/posix/
Dps.c1283 if (-1 != (i = tty_fd())) { in ps_main()
1735 TT.tty = tty_fd() != -1; in top_setup()