www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2000/06/29/11:30:15

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
list-help: <mailto:cygwin-apps-help AT sourceware DOT cygnus DOT com>
list-post: <mailto:cygwin-apps AT sourceware DOT cygnus DOT com>
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-apps AT sourceware DOT cygnus DOT com
Date: Thu, 29 Jun 2000 11:28:48 -0400
From: Chris Faylor <cgf AT cygnus DOT com>
To: cygapp <cygwin-apps AT sourceware DOT cygnus DOT com>
Subject: Re: Pending change to cygwin DLL and binmode/textmode musings
Message-ID: <20000629112848.C378@cygnus.com>
Reply-To: cygwin-apps AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygapp <cygwin-apps AT sourceware DOT cygnus DOT com>
References: <20000624234013 DOT A29970 AT cygnus DOT com> <395B2EEF DOT B305E0EF AT cygnus DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <395B2EEF.B305E0EF@cygnus.com>; from vinschen@cygnus.com on Thu, Jun 29, 2000 at 01:11:43PM +0200

On Thu, Jun 29, 2000 at 01:11:43PM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>>text mode and bin mode mounts in Cygwin.  My implementation gives
>>precedence to the (little used?) _fmode variable which has always been
>>around in Cygwin.  Setting this variable to O_BINARY used to be the
>>same as CYGWIN=binmode, i.e., it didn't affect disk files.  Now it
>>does.
>
>FWIW, I'm _heavily_ interested in your incorporating that patch into
>the developer sources.  The reason is, I would be able to speed up
>porting OpenSSH-2.1.1p1 by means.  I would like to set _fmode = O_TEXT
>and use O_BINARY where appropriate so I could remove each use of
>`fopen(..., "rt")'.  But: Wouldn't the use of _fmode = O_TEXT
>additionally affect writes?  I would still need the differing of read
>(O_TEXT) and write (don't care).

Yes.  This is possible.  I don't think that Microsoft has a
"textmode.obj" file that provides this functionality but it would be
very simple to do this.

I'll add this.

I check something in soon.  Once I have done so, we will have to avoid
creating any new applications for download until the new DLL is
released.

cgf

- Raw text -


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