Lines Matching refs:termios_p

55 speed_t cfgetispeed(termios_p)  in cfgetispeed()  argument
56 struct termios *termios_p; in cfgetispeed()
58 return termios_p->c_ispeed;
61 speed_t cfgetospeed(termios_p) in cfgetospeed() argument
62 struct termios *termios_p; in cfgetospeed()
64 return termios_p->c_ospeed;
67 speed_t cfsetispeed(termios_p, speed) in cfsetispeed() argument
68 struct termios *termios_p; in cfsetispeed()
71 termios_p->c_ispeed = speed;
75 speed_t cfsetospeed(termios_p, speed) in cfsetospeed() argument
76 struct termios *termios_p; in cfsetospeed()
79 termios_p->c_ospeed = speed;
151 int tcgetattr(filedes, termios_p) in tcgetattr() argument
153 struct termios *termios_p;
177 termios_p->c_iflag = IGNBRK;
180 termios_p->c_iflag |= IXON;
183 termios_p->c_iflag |= ICRNL;
192 termios_p->c_oflag = sgbuf.sg_flags & (CRMOD | XTABS);
193 if (termios_p->c_oflag)
195 termios_p->c_oflag |= OPOST;
209 termios_p->c_lflag = 0;
212 termios_p->c_lflag |= T_ECHO | ECHOE | ECHOK;
216 termios_p->c_lflag |= ISIG;
219 termios_p->c_lflag |= ICANON;
232 termios_p->c_cflag = CLOCAL | CREAD;
235 case BITS5: termios_p->c_cflag |= CS5; break;
236 case BITS6: termios_p->c_cflag |= CS6; break;
237 case BITS7: termios_p->c_cflag |= CS7; break;
238 case BITS8: termios_p->c_cflag |= CS8; break;
242 termios_p->c_cflag |= PARENB | PARODD;
246 termios_p->c_cflag |= PARENB;
250 termios_p->c_cflag |= CSTOPB;
260 termios_p->c_ospeed =
261 termios_p->c_ispeed =
267 termios_p->c_cc[VEOF] = tcbuf.t_eofc;
268 termios_p->c_cc[VEOL] = tcbuf.t_brkc;
269 termios_p->c_cc[VERASE] = sgbuf.sg_erase;
270 termios_p->c_cc[VINTR] = tcbuf.t_intrc;
271 termios_p->c_cc[VKILL] = sgbuf.sg_kill;
272 termios_p->c_cc[VQUIT] = tcbuf.t_quitc;
273 termios_p->c_cc[VSTART] = tcbuf.t_startc;
274 termios_p->c_cc[VSTOP] = tcbuf.t_stopc;
275 termios_p->c_cc[VMIN] = 1;
276 termios_p->c_cc[VTIME] = 0;
277 termios_p->c_cc[VSUSP] = 0;
282 int tcsetattr(filedes, opt_actions, termios_p) in tcsetattr() argument
285 struct termios *termios_p;
300 if ((termios_p->c_ispeed != 0 && termios_p->c_ispeed != termios_p->c_ospeed)
301 || (sgspeed = tc_to_sg_speed(termios_p->c_ospeed)) < 0)
325 if (termios_p->c_oflag & OPOST)
330 if (termios_p->c_oflag & XTABS)
336 if (termios_p->c_iflag & ICRNL)
342 if (termios_p->c_lflag & T_ECHO)
346 if (!(termios_p->c_lflag & ICANON))
348 if (termios_p->c_lflag & ISIG)
358 switch (termios_p->c_cflag & CSIZE)
365 if (termios_p->c_cflag & PARENB)
367 if (termios_p->c_cflag & PARODD)
377 sgbuf.sg_erase = termios_p->c_cc[VERASE];
378 sgbuf.sg_kill = termios_p->c_cc[VKILL];
380 tcbuf.t_intrc = termios_p->c_cc[VINTR];
381 tcbuf.t_quitc = termios_p->c_cc[VQUIT];
382 tcbuf.t_startc = termios_p->c_cc[VSTART];
383 tcbuf.t_stopc = termios_p->c_cc[VSTOP];
384 tcbuf.t_eofc = termios_p->c_cc[VEOF];
385 tcbuf.t_brkc = termios_p->c_cc[VEOL];