Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <20001216174730.9681.qmail@web122.yahoomail.com>
Date: Sat, 16 Dec 2000 09:47:30 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: Re: _open problem using O_EXCL flag and -mno-cygwin
To: dponce@voila.fr
Cc: cygwin@sources.redhat.com, david@dponce.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


--- David Ponce <dponce@voila.fr> wrote:
> Hello,
> 
> "Dan Holmsand" <dan@eyebee.com> gave me the solution:
> 
> >  I saw your post on the cygwin list about O_EXCL trouble with
> >  -mno-cygwin.
> >
> >  I've come across this also, and found (the hard way) that O_EXCL
> >  doesn't play well with O_TRUNC (and after all, logically they are
> >  mutually exclusive).
> 
> >  So, you might want to try without O_TRUNC - and it just might work...
> 
> 
> So if I dont use the O_TRUNC with the O_EXCL flags, _open works well.
> 

Oh, yes I remember this now.  I ran into it years ago and had forgotten.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

