Home
last modified time | relevance | path

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

/external/dbus/tools/
Ddbus-launch.c420 int tty_fd; in kill_bus_when_session_ends() local
450 tty_fd = 0; in kill_bus_when_session_ends()
452 tty_fd = -1; in kill_bus_when_session_ends()
454 if (tty_fd >= 0) in kill_bus_when_session_ends()
459 if (tty_fd < 0 && x_fd < 0) in kill_bus_when_session_ends()
481 if (tty_fd >= 0) in kill_bus_when_session_ends()
483 FD_SET (tty_fd, &read_set); in kill_bus_when_session_ends()
484 FD_SET (tty_fd, &err_set); in kill_bus_when_session_ends()
493 select (MAX (tty_fd, x_fd) + 1, in kill_bus_when_session_ends()
511 if (tty_fd >= 0) in kill_bus_when_session_ends()
[all …]
/external/mksh/src/
Djobs.c267 tcsetpgrp(tty_fd, restore_ttypgrp); in j_exit()
292 if ((ttypgrp_ok = use_tty && tty_fd >= 0 && tty_devtty)) { in j_change()
299 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { in j_change()
320 if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_change()
333 if (tty_fd >= 0) in j_change()
334 tcgetattr(tty_fd, &tty_state); in j_change()
488 tcsetpgrp(tty_fd, j->pgrp); in exchild()
804 tcsetattr(tty_fd, TCSADRAIN, &j->ttystat); in j_resume()
807 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? in j_resume()
811 tcsetattr(tty_fd, TCSADRAIN, &tty_state); in j_resume()
[all …]
Dmain.c985 if (tty_fd >= 0) { in tty_init()
986 close(tty_fd); in tty_init()
987 tty_fd = -1; in tty_init()
1018 if ((tty_fd = fcntl(tfd, F_DUPFD, FDBASE)) < 0) { in tty_init()
1022 } else if (fcntl(tty_fd, F_SETFD, FD_CLOEXEC) < 0) { in tty_init()
1026 close(tty_fd); in tty_init()
1027 tty_fd = -1; in tty_init()
1029 tcgetattr(tty_fd, &tty_state); in tty_init()
1037 if (tty_fd >= 0) { in tty_close()
1038 close(tty_fd); in tty_close()
[all …]
Dvar.c1464 if (tty_fd < 0) in change_winsz()
1473 if (tty_fd >= 0) { in change_winsz()
1476 if (ioctl(tty_fd, TIOCGWINSZ, &ws) >= 0) { in change_winsz()
Dsh.h1913 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
Dedit.c3202 x_mkraw(tty_fd, NULL, false); in x_mode()
3242 tcsetattr(tty_fd, TCSADRAIN, &tty_state); in x_mode()
/external/ppp/pppd/
Dsys-linux.c396 int tty_establish_ppp (int tty_fd) in tty_establish_ppp() argument
403 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
423 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
430 ret_fd = generic_establish_ppp(tty_fd); in tty_establish_ppp()
440 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
548 void tty_disestablish_ppp(int tty_fd) in tty_disestablish_ppp() argument
554 if (tcflush(tty_fd, TCIOFLUSH) < 0) in tty_disestablish_ppp()
562 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { in tty_disestablish_ppp()
567 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { in tty_disestablish_ppp()
573 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) { in tty_disestablish_ppp()
[all …]
/external/bluetooth/bluez/plugins/
Dpnat.c201 int tty_fd; in tty_try_open() local
203 tty_fd = open(client->tty_name, O_RDONLY | O_NOCTTY); in tty_try_open()
204 if (tty_fd < 0) { in tty_try_open()
224 client->io = g_io_channel_unix_new(tty_fd); in tty_try_open()