Lines Matching defs:fd
54 * fd - fd for the device
66 set_termio(fd,options,aspeed,clear,mode)
67 int fd;
92 if ((term = get_ttymode(fd, &termio, &termios, &stermio,
129 if (set_ttymode(fd, term, &termio, &termios, &stermio,
143 turnon_canon(fd)
144 int fd;
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)
173 int fd;
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 */
206 while(ioctl(fd, I_POP, 0) >= 0) /* pop everything */
212 if (ioctl(fd, I_PUSH, p) == -1) {
225 hang_up_line(int fd)
233 if (ioctl(fd,TCGETS,&termios) < 0) {
234 if (ioctl(fd,TCGETA,&termio) < 0) {
241 if (ioctl(fd,TCSETA,&termio) < 0) {
248 if (ioctl(fd,TCSETS,&termios) < 0) {
261 initial_termio(fd,pmptr)
262 int fd;
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);