delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/18/10:14:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 18 Mar 2009 11:13:43 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: _set_fmode?
Message-ID: <20090318151343.GB3581@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <49C04B2D DOT 2090703 AT cwilson DOT fastmail DOT fm> <20090318094323 DOT GA12824 AT calimero DOT vinschen DOT de> <49C0EC08 DOT 8020907 AT cwilson DOT fastmail DOT fm> <20090318144112 DOT GC16595 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20090318144112.GC16595@calimero.vinschen.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Mar 18, 2009 at 03:41:12PM +0100, Corinna Vinschen wrote:
>On Mar 18 08:41, Charles Wilson wrote:
>> Corinna Vinschen wrote:
>> > On Mar 17 21:15, Charles Wilson wrote:
>> >>
>> >> +#if defined(_WIN32) && !defined(__CYGWIN__)
>> 
>> > The !defined(__CYGWIN__) is not necessary because gcc for Cygwin
>> > doesn't define _WIN32.
>> 
>> gcc does not define it. But the w32api headers DO.
>
>Hmpf, right.
>
>> >   extern int _fmode;
>> >   _fmode = O_BINARY;
>> 
>> I didn't know you could access it directly, outside of cygwin1.dll.
>
>Well, it's defined in the application itself.
>
>> > But anyway, using binmode.o is much more elegant, IMHO.  I don't see
>> > what speaks against using it.
>> 
>> Well, now that I see libbinmode.a, nothing.
>
>Don't use the libFOOmode.a files.  They don't do what you want.
>Actually I think we should remove them better sooner than later.

No, I've always meant to make these work as planned.  It is possible but
I've never gotten around to it since I created them.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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