Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Sat, 1 Jul 2000 11:45:20 -0400 To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: Checked in my changes Message-ID: <20000701114520.A16841@cygnus.com> Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com Mail-Followup-To: cygwin-developers AT sourceware DOT cygnus DOT com References: <20000701000326 DOT A10103 AT cygnus DOT com> <395DC2EB DOT 1AB3D805 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <395DC2EB.1AB3D805@cygnus.com>; from vinschen@cygnus.com on Sat, Jul 01, 2000 at 12:07:39PM +0200 On Sat, Jul 01, 2000 at 12:07:39PM +0200, Corinna Vinschen wrote: >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; > } You're right. I somehow dropped a tilde. cgf