Searched refs:tty_fd (Results 1 – 9 of 9) sorted by relevance
/external/dbus/tools/ |
D | dbus-launch.c | 461 int tty_fd; in kill_bus_when_session_ends() local 491 tty_fd = 0; in kill_bus_when_session_ends() 493 tty_fd = -1; in kill_bus_when_session_ends() 498 tty_fd = -1; in kill_bus_when_session_ends() 500 else if (tty_fd >= 0) in kill_bus_when_session_ends() 509 if (tty_fd < 0 && x_fd < 0) in kill_bus_when_session_ends() 531 if (tty_fd >= 0) in kill_bus_when_session_ends() 533 FD_SET (tty_fd, &read_set); in kill_bus_when_session_ends() 534 FD_SET (tty_fd, &err_set); in kill_bus_when_session_ends() 543 select (MAX (tty_fd, x_fd) + 1, in kill_bus_when_session_ends() [all …]
|
/external/mksh/src/ |
D | jobs.c | 238 mksh_tcset(tty_fd, &tty_state); in j_suspend() 240 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) { in j_suspend() 265 } else if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_suspend() 319 tcsetpgrp(tty_fd, restore_ttypgrp); in j_exit() 344 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) { in j_change() 351 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { in j_change() 372 if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_change() 540 tcsetpgrp(tty_fd, j->pgrp); in exchild() 856 mksh_tcset(tty_fd, &j->ttystat); in j_resume() 859 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? in j_resume() [all …]
|
D | main.c | 1133 if (tty_fd >= 0) { in tty_init_fd() 1159 tty_fd = rv; in tty_init_fd()
|
D | var.c | 1592 if (ioctl(tty_fd, TIOCGWINSZ, &ws) >= 0) { in change_winsz()
|
D | sh.h | 2099 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
|
D | edit.c | 3309 x_mkraw(tty_fd, NULL, false); in x_mode() 3364 mksh_tcset(tty_fd, &tty_state); in x_mode()
|
/external/chromium-trace/catapult/hooks/ |
D | pre_push | 15 with open('/dev/tty') as tty_fd: 16 return tty_fd.readline().strip()
|
/external/ppp/pppd/ |
D | sys-linux.c | 403 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/autotest/client/common_lib/ |
D | pexpect.py | 606 def __pty_make_controlling_tty(self, tty_fd): argument 612 child_name = os.ttyname(tty_fd)
|