Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>,
	<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Chris Faylor <cgf@cygnus.com>
Date: Sun, 5 Sep 1999 02:10:26 -0400
To: Victor Szel <info@szelvesz.hu>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: BUG: open() O_ flags one bit too high
Message-ID: <19990905021026.A8934@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: Victor Szel <info@szelvesz.hu>,
	cygwin@sourceware.cygnus.com
References: <002a01bef73b$13244db0$0a0ac8c8@VECWS1>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.6i
In-Reply-To: <002a01bef73b$13244db0$0a0ac8c8@VECWS1>; from Victor Szel on Sun, Sep 05, 1999 at 03:07:49AM +0200

On Sun, Sep 05, 1999 at 03:07:49AM +0200, Victor Szel wrote:
>Sorry if this is an FRB (Frequently Reported Bug).
>
>It seems that some O_ flags are defined one bit too high in
>Cygwin B20 (I've attached cygcheck.out)
>
>Here's the code snippet which deals with that bug in 
>the source code of the Harbour Project:
>
>#ifdef __CYGWIN__
>/* TODO: Get Cygwin fixed so that this bug fix won't be needed */
>static inline int FixCygwinIOflags( int flags )
>{
>   /* Starting with O_CREAT, the Cygwin I/O flags are 1 bit too high */
>   return ( ( flags & 0x1FF00 ) >> 1 ) | ( flags & 0xFF );
>}
>#endif

System		O_CREAT (octal)		O_CREAT (hex)
----------------------------------------------------
Cygwin		01000			0x200
Digital UNIX	01000			0x200
FreeBSD		01000			0x200
Irix 		00400			0x100
Linux		00100			0x040
SCO UNIX 3.2	00400			0x100
Solaris		00400			0x100
Ultrix		01000			0x200

What was the bug again?

-Chris Faylor
-Win32 Manager
-Cygnus Solutions

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

