This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: serial patch - second attempt
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 23 Jul 2002 16:50:07 +0200
- Subject: Re: serial patch - second attempt
- References: <3D327F4D.C8E80EB8@certum.pl>
On Mon, Jul 15, 2002 at 09:52:45AM +0200, Jacek Trzcinski wrote:
> 13 July 2002 Jacek Trzcinski <jacek@certum.pl>
>
> * fhandler.h (class fhandler_serial): Add new members of
> the class - rts,dtr and method ioctl(). Variables rts and dtr
> important for Win 9x only.
> * fhandler_serial.cc (fhandler_serial::open): Add initial setting
> of dtr and rts. Important for Win 9x only.
> (fhandler_serial::ioctl): New function. Implements commands TIOCMGET,
> TIOCMSET and TIOCINQ.
> (fhandler_serial::tcflush): Fixed found error.
> (fhandler_serial::tcsetattr): Add settings of rts and dtr. Important
> for Win 9x only.
> * termios.h: Add new defines as a support for ioctl() function
> on serial device.
It's applied. Today I've changed the
if (!wincap.is_winnt ())
to using a new capability
if (wincap.must_init_serial_line ())
which is set to true for each 9x/Me, to false for NT/2K/XP.
If you think that the name of the new capability is inappropriate,
please suggest another name.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.