Home
last modified time | relevance | path

Searched refs:ttyfd (Results 1 – 2 of 2) sorted by relevance

/external/ppp/pppd/
Dtty.c127 static int ttyfd; /* Serial port file descriptor */ variable
590 ttyfd = real_ttyfd; in connect_tty()
591 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1 in connect_tty()
592 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0) in connect_tty()
603 if (fstat(ttyfd, &statbuf) < 0 in connect_tty()
604 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) { in connect_tty()
620 set_up_tty(ttyfd, ((connector != NULL && connector[0] != 0) in connect_tty()
669 int fd = dup(ttyfd); in connect_tty()
675 ttyfd = pty_slave; in connect_tty()
692 if (device_script(initializer, ttyfd, ttyfd, 0) < 0) { in connect_tty()
[all …]
/external/mtools/
Dtty.c23 static int ttyfd=-1; variable
82 #define STDIN ttyfd
177 ttyfd = open("/dev/tty", O_RDONLY); in opentty()
178 if(ttyfd >= 0) { in opentty()
179 tty = fdopen(ttyfd, "r"); in opentty()
187 ttyfd = 0; in opentty()