delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/15/17:11:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "David Ponce" <dponce AT voila DOT fr>
Reply-To: dponce AT voila DOT fr
To: <earnie_boyd AT yahoo DOT com>
Cc: <cygwin AT sources DOT redhat DOT com>, <david AT dponce DOT com>
Subject: Re: Re: _open problem using O_EXCL flag and -mno-cygwin
MIME-Version: 1.0
Message-Id: <20001215220445.B5DA46E8@smtp4-out.minitel.net>
Date: Fri, 15 Dec 2000 23:04:45 +0100 (MET)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA04097

Hello,

"Dan Holmsand" <dan AT eyebee DOT 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.

Sincerely,
David

--
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