summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-22 01:49:27 +0000
committerache <ache@FreeBSD.org>1994-10-22 01:49:27 +0000
commit1ae081c2046566caf14742c15a8d93300a9b56bf (patch)
tree8e419f1d6422300f19b3b1562fe7ab9bac30a989 /lib/libc
parente0b2523cc36cef4e0eb37b4ae5a85dfeb6c8537e (diff)
downloadFreeBSD-src-1ae081c2046566caf14742c15a8d93300a9b56bf.zip
FreeBSD-src-1ae081c2046566caf14742c15a8d93300a9b56bf.tar.gz
makeraw(): forget to clear IMAXBEL, set VMIN/VTIME
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/termios.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/termios.c b/lib/libc/gen/termios.c
index a99d86f..a949023 100644
--- a/lib/libc/gen/termios.c
+++ b/lib/libc/gen/termios.c
@@ -163,12 +163,13 @@ cfmakeraw(t)
struct termios *t;
{
- t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+ t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_oflag &= ~OPOST;
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
t->c_cflag &= ~(CSIZE|PARENB);
t->c_cflag |= CS8;
- /* XXX set MIN/TIME */
+ t->c_cc[VMIN] = 1;
+ t->c_cc[VTIME] = 0;
}
tcsendbreak(fd, len)
OpenPOWER on IntegriCloud