delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/11/15:20:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Philippe Noel" <pnoel AT socoint DOT com>
To: "Cygwin-List" <cygwin AT sourceware DOT cygnus DOT com>
Subject: open() function: different behaviours on WinNT ???
Date: Wed, 11 Aug 1999 15:15:39 -0400
Message-ID: <000501bee42d$e5ef0260$400010ac@philippe.socoint.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal

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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019