Print this page
1060 termios missing cfmakeraw
Reviewed by: Cyril Plisko <cyril.plisko@mountall.com>
Reviewed by: Albert Lee <trisk@opensolaris.org>
@@ -1133,19 +1133,11 @@
/* Get the termios parameters. */
if (tcgetattr (serial_fd, &termios))
goto fail;
/* Raw mode. */
-#if defined(__sun)
- termios.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
- termios.c_oflag &= ~OPOST;
- termios.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
- termios.c_cflag &= ~(CSIZE|PARENB);
- termios.c_cflag |= CS8;
-#else
cfmakeraw (&termios);
-#endif
/* Set the speed. */
termios_speed = get_termios_speed (speed);
if (termios_speed == B0)
goto fail;