mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
cfmakeraw:
clear PARODD bit too, help user program to set its own parity via | Set CREAD bit, it is 99% case
This commit is contained in:
parent
8cf220d53b
commit
9909e796b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14858
@ -164,8 +164,8 @@ cfmakeraw(t)
|
||||
t->c_iflag |= IGNBRK;
|
||||
t->c_oflag &= ~OPOST;
|
||||
t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP|PENDIN);
|
||||
t->c_cflag &= ~(CSIZE|PARENB);
|
||||
t->c_cflag |= CS8;
|
||||
t->c_cflag &= ~(CSIZE|PARENB|PARODD);
|
||||
t->c_cflag |= CS8|CREAD;
|
||||
t->c_cc[VMIN] = 1;
|
||||
t->c_cc[VTIME] = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user