Lines Matching refs:fd
66 set_termio(fd,options,aspeed,clear,mode) in set_termio() argument
67 int fd; in set_termio()
92 if ((term = get_ttymode(fd, &termio, &termios, &stermio,
129 if (set_ttymode(fd, term, &termio, &termios, &stermio,
143 turnon_canon(fd) in turnon_canon() argument
144 int fd; in turnon_canon()
151 if (ioctl(fd, TCGETA, &termio) != 0) {
152 log("turnon_canon: TCGETA failed, fd = %d: %s", fd,
159 if (ioctl(fd, TCSETA, &termio) != 0) {
160 log("turnon_canon: TCSETA failed, fd = %d: %s", fd,
172 flush_input(fd) in flush_input() argument
173 int fd; in flush_input()
175 if (ioctl(fd, I_FLUSH, FLUSHR) == -1)
176 log("flush_input failed, fd = %d: %s", fd, strerror(errno));
178 if (ioctl(fd, TCSBRK, 1) == -1)
179 log("drain of ouput failed, fd = %d: %s", fd, strerror(errno));
190 int fd, /* fd to push modules on */ in push_linedisc() argument
206 while(ioctl(fd, I_POP, 0) >= 0) /* pop everything */ in push_linedisc()
212 if (ioctl(fd, I_PUSH, p) == -1) { in push_linedisc()
225 hang_up_line(int fd) in hang_up_line() argument
233 if (ioctl(fd,TCGETS,&termios) < 0) { in hang_up_line()
234 if (ioctl(fd,TCGETA,&termio) < 0) { in hang_up_line()
241 if (ioctl(fd,TCSETA,&termio) < 0) { in hang_up_line()
248 if (ioctl(fd,TCSETS,&termios) < 0) { in hang_up_line()
261 initial_termio(fd,pmptr) in initial_termio() argument
262 int fd; in initial_termio()
273 if (auto_termio(fd) == -1) {
274 (void)close(fd);
280 ret = set_termio(fd,speedef->g_iflags,
283 ret = set_termio(fd,speedef->g_iflags,
287 (void)close(fd);