This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Checked in my changes
- To: cygwin-developers at sourceware dot cygnus dot com
- Subject: Re: Checked in my changes
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Sat, 01 Jul 2000 12:07:39 +0200
- References: <20000701000326.A10103@cygnus.com>
- Reply-To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
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:
binmode.c:
cygwin_premain0(int argc, char **argv)
{
- _fmode &= _O_BINARY;
+ _fmode &= ~_O_BINARY;
_fmode |= _O_TEXT;
}
textmode.c:
cygwin_premain0(int argc, char **argv)
{
- _fmode &= _O_TEXT;
+ _fmode &= ~_O_TEXT;
_fmode |= _O_BINARY;
}
Corinna