delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/11/12:36:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42FB7E80.9040708@gmail.com>
Date: Thu, 11 Aug 2005 10:36:16 -0600
From: Troy Curtiss <trcurtiss AT gmail DOT com>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
MIME-Version: 1.0
To: peter AT rehley DOT net, cygwin AT cygwin DOT com
Subject: Re: Bug in stty or /dev/ttySx handling code
X-IsSubscribed: yes

Hi Peter,
  That was my patch applied back in 02/01/2003 and upon re-examining it, 
I believe this is an error.  The intended behavior was as follows:

1) When a baud rate of B0 is passed to tcsetattr(), it should not change 
the actual baud rate, but instead drop DTR.
2) In tcgetattr(), the presently set baud rate should be returned, 
regardless of the state of DTR.

My earlier patch violates #2.  I am sending a patch to fix this to 
cygwin-patches right now (CC'ing you, as well.)  Thanks for bringing 
this to my attention - I don't know what I was thinking that day :)

-Troy

> Hi,
>
> I'm seeing problems when I run stty. If I run stty -F /dev/ttyS0, it 
> shows 0 baud. I found this thread from may that has the same issue:
>
> http://sourceware.org/ml/cygwin/2005-05/msg00399.html
>
> and I found that a patch was applied in 02/01/2003 that seems to 
> prevent setting the baud if the DTR is zero. Why is the baud invalid 
> when DTR is not set? It seems like to me that DTR doesn't/shouldn't 
> have an affect on the reported baud. Can anyone shed some light on this?
>
>Thanks,
>Peter
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019