can not open com10, com11, com12 and higher

Stas Maximov stmax@pigeonpoint.com
Thu Dec 16 15:27:00 GMT 1999


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



More information about the Cygwin mailing list