This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
can not open com10, com11, com12 and higher
- To: cygwin at sourceware dot cygnus dot com
- Subject: can not open com10, com11, com12 and higher
- From: Stas Maximov <stmax at pigeonpoint dot com>
- Date: Thu, 16 Dec 1999 15:16:17 -0800
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@sourceware.cygnus.com