This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: serial ports not visible with 1.7 under Vista


Hi Dave,

thank you for the answer.

You mean that this is a bug into 1.7?

Below the errno checking test case ;-)
=====
#include <stdlib.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>

#include <string.h>
#include <errno.h>
int main (int argc, char* argv[])
{
 struct termios params;
 int tty;

 tty = open ("/dev/ttyS5", O_RDWR | O_NOCTTY | O_NONBLOCK);

 if (tty < 0)
  {
     printf ("Unable to open /dev/ttyS5: %s\n", strerror(errno));
     exit (1);
  }
 close (tty);

 return 0;
}



On Thu, May 29, 2008 at 4:14 PM, Dave Korn <dave.korn@artimi.com> wrote:
> Giovanni Maruzzelli wrote on 29 May 2008 13:59:
>
>> I cannot see the serial ports (/dev/ttyS*), it seems that they do not
>> exist under Vista (tried both as a user with admin rights and as
>> Administrator, and tried also with AUC disabled).
>>
>> Is this a known bug?
>
>  What, not checking errno?
>
>> int main (int argc, char* argv[])
>> {
>>  int tty;
>>
>>  tty = open ("/dev/ttyS5", O_RDWR | O_NOCTTY | O_NONBLOCK);
>>
>>  if (tty < 0)
>>   {
>>      printf ("Unable to open /dev/ttyS5\n");
>>      exit (1);
>>   }
>>
>>  close (tty);
>>
>>  return 0;
>> }
>
>
>  Yeh, that's one of the classics!  ;-)
>
>    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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]