Subject: Re: BUG: open() O_ flags one bit too high
From: Chris Faylor <[email-masked]>
To: Victor Szel <[email-masked]>
Cc: [email-masked]
Date: Sun, 5 Sep 1999 22:24:56 -0400

On Mon, Sep 06, 1999 at 03:38:07AM +0200, Victor Szel wrote:
>> If you're using cygwin headers in a non-cygwin (aka mingw) application,
>> then, um, that's wrong.  You should be using another set of headers.
>> I'm sure that someone will coment on this and let you know which they
>> should be.
>
>Yeah really strange.
>
>One more idea: we are linking MOLDNAME lib, couldn't that be a problem. 
>BTW we are including <mingw32/share.h> and <fcntl.h>, so the flags should 
>be OK, but it seems that the open() function is executed from the MFC DLL 
>which uses different flag values.

As far as I can see, the mingw headers match the VC++ headers.  Both define
O_CREAT as 0x100.

It sure sounds like you are not using the mingw headers.

-chris

--
Want to unsubscribe from this list?
Send a message to [email-masked]