This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
BUG: open() O_ flags one bit too high
- To: <cygwin@sourceware.cygnus.com>
- Subject: BUG: open() O_ flags one bit too high
- From: "Victor Szel" <info@szelvesz.hu>
- Date: Sun, 5 Sep 1999 03:07:49 +0200
- Organization: Szelvesz Bt.
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
Regards,
Victor Szel
cygcheck.out
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com