NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/56779: RAW mode on the TTY always returns EOF (-1)
The following reply was made to PR kern/56779; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/56779: RAW mode on the TTY always returns EOF (-1)
Date: Tue, 5 Apr 2022 08:17:19 +0000 (UTC)
On Tue, 5 Apr 2022, Michael van Elst wrote:
> cfmakeraw changes the configuration in a termios structure,
> but it doesn't magically initialize values. Your code
> just uses random stack content with unpredictable results.
>
c_cc[VMIN] = 1;
c_cc[VTIME] = 0;
can also be done in src/lib/libc/termios/cfmakeraw.c, I think.
-RVP
Home |
Main Index |
Thread Index |
Old Index