www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/18/15:13:51

Date: Wed, 18 Aug 1999 14:33:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: David Christensen <dchrist AT dnai DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: djgpp, Win98, Perl, and serial port
In-Reply-To: <006a01bee769$8d012f40$0a01a8c0@dchrist.dnai.com>
Message-ID: <Pine.SUN.3.91.990818143117.10490F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 15 Aug 1999, David Christensen wrote:

> >Btw, why did you need O_EXCL?
> 
> I've done C/C++ serial stuff under Win32, and the API docs recommend opening
> the serial port in exclusive mode  to avoid the confusion of two processes/
> threads trying to use one port at the same time.  I just assumed that the
> same principal applied to DOS.  Am I missing something here?

AFAIK, O_EXCL doesn't have any effect on character devices, only on disk 
files.  If you want to deny other processes the access to COM1, you 
should use SH_DENYALL, not O_EXCL.

The Win32 API might behave differently.

> BTW Perl -V indicates "djgpp v2 port (perl5004) by Laszlo Molnar, 1997".  Do
> you know which newsgroup(s) he Laszlo hangs out on?

If Laszlo doesn't reply to this thread, try djgpp-workers AT delorie DOT com.

- Raw text -


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