diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-01 15:45:20 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-01 15:45:20 +0000 |
commit | 51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b (patch) | |
tree | 00ce64760366e554d27bd2100958c1c89d95fa45 /winsup | |
parent | 44cac4112164ac91fe00e3acf0dd1c567a937313 (diff) | |
download | newlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.zip newlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.tar.gz newlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.tar.bz2 |
* binmode.c (cygwin_premain0): Fix erroneous clearing of bit.
* textmode.c (cygwin_premain0): Ditto.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/binmode.c | 2 | ||||
-rw-r--r-- | winsup/cygwin/textmode.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0321789..44bcaf5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 1 11:43:32 2000 Christopher Faylor <cgf@cygnus.com> + + * binmode.c (cygwin_premain0): Fix erroneous clearing of bit. + * textmode.c (cygwin_premain0): Ditto. + Sat Jul 1 00:24:04 2000 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (_dll_crt0): Renamed from dll_crt0 (). diff --git a/winsup/cygwin/binmode.c b/winsup/cygwin/binmode.c index b498420..afc8854 100644 --- a/winsup/cygwin/binmode.c +++ b/winsup/cygwin/binmode.c @@ -14,6 +14,6 @@ extern int _fmode; void cygwin_premain0(int argc, char **argv) { - _fmode &= _O_TEXT; + _fmode &= ~_O_TEXT; _fmode |= _O_BINARY; } diff --git a/winsup/cygwin/textmode.c b/winsup/cygwin/textmode.c index 83766a2..2e4fc70 100644 --- a/winsup/cygwin/textmode.c +++ b/winsup/cygwin/textmode.c @@ -14,6 +14,6 @@ extern int _fmode; void cygwin_premain0(int argc, char **argv) { - _fmode &= _O_BINARY; + _fmode &= ~_O_BINARY; _fmode |= _O_TEXT; } |