Checked in my changes

Corinna Vinschen
Sat Jul 1 03:07:00 GMT 2000

Chris Faylor wrote:
> This release includes two files which should be installed in /usr/lib --
> binmode.o and textmode.o.  Linking with those files will cause all opens
> to be in either binmode or textmode respectively unless explicitly overriden
> via open, fopen, or setmode.  This means that files linked with this will
> have an implicit O_BINARY or O_TEXT added to every open.

Sorry Chris, but I assume that both files are not correct:


	cygwin_premain0(int argc, char **argv)
-	  _fmode &= _O_BINARY;
+	  _fmode &= ~_O_BINARY;
	  _fmode |= _O_TEXT;


	cygwin_premain0(int argc, char **argv)
-	  _fmode &= _O_TEXT;
+	  _fmode &= ~_O_TEXT;
	  _fmode |= _O_BINARY;


More information about the Cygwin-developers mailing list