delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <002a01bef73b$13244db0$0a0ac8c8@VECWS1> |
From: | "Victor Szel" <info AT szelvesz DOT hu> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | BUG: open() O_ flags one bit too high |
Date: | Sun, 5 Sep 1999 03:07:49 +0200 |
Organization: | Szelvesz Bt. |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2918.2701 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2918.2701 |
------=_NextPart_000_0027_01BEF74B.D5EFC120 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0027_01BEF74B.D5EFC120 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" =0A= Cygnus Win95/NT Configuration Diagnostics=0A= Current System Time: Sun Sep 05 02:58:53 1999=0A= =0A= WinNT Ver 5.0 build 2072 =0A= =0A= Path: /Program Files/Far=0A= /WINNT/system32=0A= /WINNT=0A= //c/util=0A= //c/util/crack=0A= //c/util/packers=0A= //c/devl/clip52/bin=0A= //c/devl/clipper/bin=0A= //c/work/vtools/util=0A= //C/devl/BC45/BIN=0A= /cygnus/cygwin-b20/H-i586-cygwin32/bin/=0A= =0A= SysDir: D:\WINNT\System32=0A= WinDir: D:\WINNT=0A= =0A= =0A= !C: =3D `C:\TEMP'=0A= !D: =3D `D:\_CVS-\harbour\source\rtl'=0A= ALLUSERSPROFILE =3D `D:\WINNT\Profiles\All Users'=0A= APPDATA =3D `D:\WINNT\Profiles\Administrator\Application Data'=0A= COMMONPROGRAMFILES =3D `D:\Program Files\Common Files'=0A= COMPUTERNAME =3D `VECWS1'=0A= COMSPEC =3D `D:\WINNT\system32\cmd.exe'=0A= DJGPP =3D `D:\DEVL\DJGPP\djgpp.env'=0A= HOMEDRIVE =3D `D:'=0A= HOMEPATH =3D `\'=0A= INCLUDE =3D = `c:\devl\clip52\include;c:\work\vtools;c:\devl\msc\include;c:\devl\clippe= r\include'=0A= LIB =3D `c:\devl\clip52\lib;c:\work\vtools;c:\devl\clipper\lib'=0A= LOGONSERVER =3D `\\VECWS1'=0A= NUMBER_OF_PROCESSORS =3D `1'=0A= OBJ =3D `c:\devl\clip52\obj;c:\work\vtools;c:\devl\clipper\obj'=0A= OS =3D `Windows_NT'=0A= OS2LIBPATH =3D `D:\WINNT\system32\os2\dll;'=0A= PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS;.WSH'=0A= PROCESSOR_ARCHITECTURE =3D `x86'=0A= PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 6 Stepping 0, GenuineIntel'=0A= PROCESSOR_LEVEL =3D `6'=0A= PROCESSOR_REVISION =3D `0600'=0A= PROGRAMFILES =3D `D:\Program Files'=0A= PROMPT =3D `$P$G'=0A= SYSTEMDRIVE =3D `D:'=0A= SYSTEMROOT =3D `D:\WINNT'=0A= TEMP =3D `D:\WINNT\Profiles\ADMINI~1\LOCALS~1\Temp'=0A= TMP =3D `D:\WINNT\Profiles\ADMINI~1\LOCALS~1\Temp'=0A= USERDOMAIN =3D `VECWS1'=0A= USERNAME =3D `Administrator'=0A= USERPROFILE =3D `D:\WINNT\Profiles\Administrator'=0A= WINDIR =3D `D:\WINNT'=0A= XPPRESOURCE =3D `d:\program files\ALASKA\XPPW32\RESOURCE'=0A= TERM =3D `cygwin'=0A= =0A= HKEY_CURRENT_USER\Software\Cygnus Solutions=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\00=0A= (default) =3D `D:'=0A= unix =3D `/'=0A= fbinary =3D 0x00000000=0A= fsilent =3D 0x00000000=0A= HKEY_CURRENT_USER\Software\Microsoft\RAS = Autodial\Addresses\sourceware.cygnus.com=0A= (default) =3D 0x00000002=0A= LastModified =3D 0x37b9c947=0A= Network =3D `NETWORK0'=0A= HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu= Order\Start Menu\Programs\Cygnus Solutions=0A= (default) =3D (unsupported type)=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20\B20.1=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\00=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\01=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\02=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\03=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\04=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\05=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\06=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\07=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\08=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\09=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0A=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0B=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0C=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0D=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0E=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\0F=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\10=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\11=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\12=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\13=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\14=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\15=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\16=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\17=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\18=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\19=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\1A=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\1B=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\1C=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL = setup\b15.0\mounts\1D=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus = Solutions\GNUPro\i586-cygwin32\i586-cygwin32=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus = Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1=0A= (default) =3D `d:\cygnus\cygwin-b20'=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App = Management\ARPCache\Cygnus Cygwin B20=0A= (default) =3D (unsupported type)=0A= Changed =3D 0x00000000=0A= HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cy= gnus Cygwin B20=0A= (default) =3D `D:\WINNT\IsUninst.exe -fd:\cygnus\cygwin-b20\Uninst.isu'=0A= DisplayName =3D `Cygwin B20'=0A= =0A= a:\ fd FAT 1Mb 18% CP UN =0A= c:\ hd FAT 2039Mb 90% CP UN =0A= d:\ hd NTFS 2070Mb 90% CP CS UN PA FC =0A= e:\ cd CDFS 0Mb -2147483548% CS Audio CD=0A= =0A= D: / native text!=3Dbinary=0A= =0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe=0A= Not Found: cpp (good!)=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe=0A= Found: D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe=0A= =0A= 371k 1998/12/01 D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll = - os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygtcl80.dll" v0.0 ts=3D1998/12/1 9:25=0A= 5k 1998/12/01 = D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=3D4.0 = img=3D1.0 sys=3D4.0=0A= 10k 1998/12/01 = D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=3D4.0 = img=3D1.0 sys=3D4.0=0A= "cygtclreg80.dll" v0.0 ts=3D1998/12/1 9:25=0A= 600k 1998/12/01 D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygtk80.dll" v0.0 ts=3D1998/12/1 9:28=0A= 446k 1998/12/03 D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - = os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D1998/12/4 5:39=0A= Use -h to see help about each section=0A= ------=_NextPart_000_0027_01BEF74B.D5EFC120 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0027_01BEF74B.D5EFC120--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |