/external/dbus/tools/ |
dbus-launch.c | 420 int tty_fd; local 450 tty_fd = 0; 452 tty_fd = -1; 454 if (tty_fd >= 0) 459 if (tty_fd < 0 && x_fd < 0) 481 if (tty_fd >= 0) 483 FD_SET (tty_fd, &read_set); 484 FD_SET (tty_fd, &err_set); 493 select (MAX (tty_fd, x_fd) + 1, 511 if (tty_fd >= 0 [all...] |
/external/mksh/src/ |
jobs.c | 246 tcsetpgrp(tty_fd, restore_ttypgrp); 271 if ((ttypgrp_ok = use_tty && tty_fd >= 0 && tty_devtty)) { 278 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { 300 if (tcsetpgrp(tty_fd, kshpid) < 0) { 312 if (tty_fd >= 0) 313 tcgetattr(tty_fd, &tty_state); 437 tcsetpgrp(tty_fd, pi.j->pgrp); 720 tcsetattr(tty_fd, TCSADRAIN, &j->ttystate); 723 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? 727 tcsetattr(tty_fd, TCSADRAIN, &tty_state) [all...] |
main.c | 370 /* Do this after j_init(), as tty_fd is not initialised until then */ 835 /* Initialise tty_fd. Used for saving/reseting tty modes upon 844 if (tty_fd >= 0) { 845 close(tty_fd); 846 tty_fd = -1; 876 if ((tty_fd = fcntl(tfd, F_DUPFD, FDBASE)) < 0) { 880 } else if (fcntl(tty_fd, F_SETFD, FD_CLOEXEC) < 0) { 885 close(tty_fd); 886 tty_fd = -1; 888 tcgetattr(tty_fd, &tty_state) [all...] |
var.c | 1449 if (tty_fd < 0) 1458 if (tty_fd >= 0) { 1461 if (ioctl(tty_fd, TIOCGWINSZ, &ws) >= 0) { [all...] |
sh.h | [all...] |
edit.c | [all...] |
/external/ppp/pppd/ |
sys-linux.c | 396 int tty_establish_ppp (int tty_fd) 403 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { 423 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { 430 ret_fd = generic_establish_ppp(tty_fd); 440 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) 548 void tty_disestablish_ppp(int tty_fd) 554 if (tcflush(tty_fd, TCIOFLUSH) < 0) 562 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { 567 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { 573 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) [all...] |
/external/bluetooth/bluez/plugins/ |
pnat.c | 201 int tty_fd; local 203 tty_fd = open(client->tty_name, O_RDONLY | O_NOCTTY); 204 if (tty_fd < 0) { 224 client->io = g_io_channel_unix_new(tty_fd);
|