delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/25/10:35:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040325102758.03b38100@127.0.0.1>
X-Sender:
Date: Thu, 25 Mar 2004 10:31:44 -0500
To: Curt Mills <archer AT eskimo DOT com>, Cygwin List <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: "test -c com1" hangs on some WinXP systems
In-Reply-To: <Pine.LNX.4.44.0403242222550.30739-100000@wapiti.we7u.net>
References: <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040324194546 DOT 03cadb00 AT 127 DOT 0 DOT 0 DOT 1> <Pine DOT LNX DOT 4 DOT 44 DOT 0403242222550 DOT 30739-100000 AT wapiti DOT we7u DOT net>
Mime-Version: 1.0

At 01:28 AM 3/25/2004, you wrote:
>On Wed, 24 Mar 2004, Larry Hall wrote:
>
>> "com" is a reserved name in Windows.  It's best to steer clear of it in
>> any context you can.  You may be catching it in your "if test -c com1"
>> version.
>
>We'd _love_ to steer clear of it, particularly since /dev/ttyS0
>works for two of our targeted systems.
>
>We need to know that the "if test -c /dev/ttyS0" will work on all
>Cygwin boxes from Win95 through WinXP.  The test for "com1" was
>working just fine except for very recently on a few WinXP systems
>(but appears to work on other WinXP boxes).
>
>I'm delaying a new release and staying with the "if test -d
>/proc/registry" bit until we can get that question answered.  That
>last works but it's ugly.


You're welcome to peruse the Cygwin DLL code for yourself but I see nothing
that suggests that /dev/ttyS* is Windows version specific.  I can't promise 
that there aren't bugs that will cause you problems on some Windows O/S 
version versus another but AFAICS /dev/ttyS* is just a direct mapping to 
//./com*.  So they look synonymous to me under the covers.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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