www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/07/01/06:07:56

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <395DC2EB.1AB3D805@cygnus.com>
Date: Sat, 01 Jul 2000 12:07:39 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Checked in my changes
References: <20000701000326 DOT A10103 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019