delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/16/18:27:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <385972C1.75703BED@pigeonpoint.com>
Date: Thu, 16 Dec 1999 15:16:17 -0800
From: Stas Maximov <stmax AT pigeonpoint DOT com>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: can not open com10, com11, com12 and higher

Hi,

I am using 16-port serial card and was not able to access serial ports
com10 - com18. I have seen a couple of people complaining about the same
problem.

The cause of the problem is that CreateFile accepts strings "com1" -
"com9" as names of devices and reject to do so for two and more digit
numbers. In order to open "com10" and above we actually have to feed
"\\\\.\\com10" string to CreateFile.

The simple fix to winsup/path.cc given below would solve the problem.
Can someone integrate this? 

Stas.


bash-2.02$ diff -u path.cc.00 path.cc
--- path.cc.00  Wed Oct 27 20:55:55 1999
+++ path.cc     Thu Dec 16 14:49:36 1999
@@ -400,7 +400,7 @@
   "\\dev\\ttym",
   "\\dev\\tty%d",
   "\\dev\\ptym",
-  "com%d",
+  "\\\\.\\com%d",
   "\\dev\\pipe",
   "\\dev\\piper",
   "\\dev\\pipew",
bash-2.02$

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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