This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Opening COM2
- To: gnu-win32 at cygnus dot com, Markus dot Maeder at siemens dot ch
- Subject: Re: Opening COM2
- From: Gary Liddle <garyl at padd dot press dot net>
- Date: Thu, 15 May 97 19:18:45 BST
the way to do it is
to
fp = fopen("com2", "whatever");
comfd = fileno(fp);
>
> Bob Wilson posted a message some time ago with some C source lines:
>
> if ((comfd = open("com2", O_RDWR | O_TEXT)) <= 0) {
> fprintf(stderr, "Cmd: Unable to open terminal\n");
> exit(1);
> }
>
> He stated, this doesnt function under b17. open hangs...
>
> It seems, that this doesn't work under b18 either. Is there a patch?
>
> Regards,
> Markus
>
>
>
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".