This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
open() function: different behaviours on WinNT ???
- To: "Cygwin-List" <cygwin@sourceware.cygnus.com>
- Subject: open() function: different behaviours on WinNT ???
- From: "Philippe Noel" <pnoel@socoint.com>
- Date: Wed, 11 Aug 1999 15:15:39 -0400
Hi,
I currently have problems with the open() function under WinNT, when I try
to open a serial port. When the open function is called, the RTS line
raised ( contrary to Linux ). This behaviour is totally unacceptable for me
since I'm connecting a radio on the serial port, and the RTS line control
the TX carrier.
Here is the way I call the open function (very standard way to do this I
think):
const char* fname = "/dev/com1";
int fd = open( fname, O_RDWR | O_NDELAY );
if (fd != -1)
syslog( LOG_DEBUG, "Serial %s is open ok", fname );
else
syslog( LOG_ERR, "Can't open %s %m", fname );
Am I doing something wrong? Is there a way to solve this?
Please help, I'm really stuck.
P H I L I P P E N O E L
Socomar International (1995) inc.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com