Date: Wed, 18 Aug 1999 14:33:39 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: David Christensen 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.