\\\\.\\com6 gives me "Device or resource busy", while all other com* give me "not existing". So, it is definitely better. But do not yet works. Opening and read/writing to it with native win32 API works (readfile etc)
following is the relevant strace: 67 36177 [main] ciapa 756 open: open (\\.\com6, 0x4002)^M 54 36231 [main] ciapa 756 normalize_posix_path: src \\.\com6^M 45 36276 [main] ciapa 756 normalize_win32_path: \\.\com6 = normalize_win32_path (\\.\com6)^M 44 36320 [main] ciapa 756 mount_info::conv_to_win32_path: conv_to_win32_path (//./com6)^M 43 36363 [main] ciapa 756 mount_info::conv_to_win32_path: src_path //./com6, dst \\.\com6, flags 0x0, rc 0^M 2742 39105 [main] ciapa 756 symlink_info::check: 0xC0000010 = NtQueryInformationFile (\??\com6)^M 140 39245 [main] ciapa 756 symlink_info::check: 0xC0000033 = NtOpenFile(\??\)^M 109 39354 [main] ciapa 756 symlink_info::check: not a symlink^M 41 39395 [main] ciapa 756 symlink_info::check: 0 = symlink.check (\\.\com6, 0x223990) (0x0)^M 41 39436 [main] ciapa 756 path_conv::check: this->path(\\.\com6), has_acls(0)^M 72 39508 [main] ciapa 756 build_fh_pc: fh 0x6125271C^M 49 39557 [main] ciapa 756 fhandler_base::open: (\??\com6, 0x104002)^M 123 39680 [main] ciapa 756 seterrno_from_win_error: /netrel/src/cygwin-1.7.0-16/winsup/cygwin/fhandler.cc:631 windows error 32^M 45 39725 [main] ciapa 756 geterrno_from_win_error: windows error 32 == errno 16^M 42 39767 [main] ciapa 756 __set_errno: void seterrno_from_win_error(const char*, int, DWORD):313 val 16^M 43 39810 [main] ciapa 756 fhandler_base::open: C0000043 = NtCreateFile (0x0, C0100000, \??\com6, io, NULL, 0, 7, 1, 4420, NULL, 0)^M 108 39918 [main] ciapa 756 fhandler_base::open: 0 = fhandler_base::open (\??\com6, 0x104002)^M 104 40022 [main] ciapa 756 fhandler_base::open_fs: 0 = fhandler_disk_file::open (\??\com6, 0x4002)^M 108 40130 [main] ciapa 756 open: -1 = open (\\.\com6, 0x4002)^M On Thu, May 29, 2008 at 6:15 PM, Dave Korn <[EMAIL PROTECTED]> wrote: > Giovanni Maruzzelli wrote on 29 May 2008 16:41: > >> Thanks a lot Dave! >> >> Seems that it is looking for a \Device\Serial5 > > Ouch. That's a problem. Not all serial devices use the same name format. > > Although it's not strictly supported, you might be able to work around it > by using "\\\\.\\com6" instead. > > > cheers, > DaveK > -- > Can't think of a witty .sigline today.... > > > -- > 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/ > > -- 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/