5 int tcgetattr(int fd
, struct termios
*term
)
7 return ioctl(fd
, TCGETS
, term
);
10 int tcsetattr(int fd
, int actions
, struct termios
* term
)
14 return ioctl(fd
, TCSETS
, term
);
16 return ioctl(fd
, TCSETSW
, term
);
18 return ioctl(fd
, TCSETSF
, term
);
24 void cfmakeraw(struct termios
*t
)
26 t
->c_iflag
&= ~(IGNBRK
| BRKINT
| PARMRK
| ISTRIP
|
27 INLCR
| IGNCR
| ICRNL
| IXON
);
29 t
->c_lflag
&= ~(ECHO
| ECHONL
| ICANON
| ISIG
| IEXTEN
);
30 t
->c_cflag
&= ~(CSIZE
| PARENB
);