HomeSort by relevance Sort by last modified time
    Searched defs:ttyfd (Results 1 - 2 of 2) sorted by null

  /external/ppp/pppd/
tty.c 126 static int ttyfd; /* Serial port file descriptor */ variable
582 ttyfd = real_ttyfd;
583 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1
584 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
595 if (fstat(ttyfd, &statbuf) < 0
596 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
612 set_up_tty(ttyfd, ((connector != NULL && connector[0] != 0)
661 int fd = dup(ttyfd);
667 ttyfd = pty_slave;
684 if (device_script(initializer, ttyfd, ttyfd, 0) < 0)
    [all...]
  /system/core/sh/
jobs.c 97 static int ttyfd = -1; variable
153 if (ttyfd != -1)
154 close(ttyfd);
155 if ((ttyfd = open("/dev/tty", O_RDWR)) == -1) {
157 if (isatty(i) && (ttyfd = dup(i)) != -1)
165 if ((err = fcntl(ttyfd, F_DUPFD, (1 << i) - 1)) != -1)
169 close(ttyfd);
170 ttyfd = err;
173 err = ioctl(ttyfd, FIOCLEX, 0);
175 err = fcntl(ttyfd, F_SETFD
    [all...]

Completed in 793 milliseconds